-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16.0 mig l10n fr ecotaxe #448
Conversation
/ocabot migration l10n_fr_ecotaxe |
Any help needed to merge the request ? |
Any solution to be able to merge this request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a quick code review, just some minor remarks.
When the PR is ready I will do some tests
ecotaxe_scale_code = fields.Char() | ||
|
||
@api.onchange("ecotaxe_type") | ||
def _onchange_ecotaxe_type(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to convert default_fixed_ecotaxe
and ecotaxe_coef
as readonly=False computed fields to replace this on change.
|
||
|
||
class EcotaxeLineProduct(models.Model): | ||
"""class for objects which can be used to save mutili ecotaxe calssification by product.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutili = multi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review
readonly="1" | ||
> | ||
<tree editable="bottom"> | ||
<field name="ecotaxe_classification_id" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for usability
We already know it's Ecotax because this is the name of th o2m
<field name="ecotaxe_classification_id" /> | |
<field name="ecotaxe_classification_id" string="Classification" /> |
<tree editable="bottom"> | ||
<field name="ecotaxe_classification_id" /> | ||
<field name="force_ecotaxe_amount" /> | ||
<field name="ecotaxe_amount" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<field name="ecotaxe_amount" /> | |
<field name="ecotaxe_amount" string="Amount" /> |
<tree editable="bottom"> | ||
<field name="ecotaxe_classification_id" /> | ||
<field name="force_ecotaxe_amount" /> | ||
<field name="ecotaxe_amount" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for name field
|
||
product_id = fields.Many2one("product.product", string="Product", readonly=True) | ||
currency_id = fields.Many2one("res.currency", string="Currency") | ||
ecotaxe_classification_id = fields.Many2one( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's an ecotaxe model, maybe classification_id
name is sufficient here
"account.ecotaxe.classification", | ||
string="Ecotaxe Classification", | ||
) | ||
ecotaxe_amount_unit = fields.Monetary( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's an ecotaxe model, maybe amount_unit
name is sufficient here.
The same for ecotaxe name in fields below
"ecotaxe.line.product", | ||
compute="_compute_all_ecotaxe_line_product_ids", | ||
search="_search_all_ecotaxe_line_product_ids", | ||
string="Additional ecotaxe lines", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string="Additional ecotaxe lines", | |
string="All ecotaxe lines", |
To avoid Warning : Two fields (all_ecotaxe_line_product_ids, additional_ecotaxe_line_product_ids) of product.product() have the same label: Additional ecotaxe lines.
…product and ecotaxe classification
3ab46d6
to
afe3a00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too
This PR has the |
[14.0][IMP] l10n_fr_ecotaxe: manage multi ecotaxe classification by product [14.0][FIX] l10n_fr_ecotaxe: pre-commit, access rule, view [14.0][FIX] l10n_fr_ecotaxe: imp multi ecotaxe classification on product form & edit ecotaxe line on account move line [14.0][FIX] l10n_fr_ecotaxe: add archived web_ribbon on ecotaxe_classification & ecotaxe_category [14.0][FIX] l10n_fr_ecotaxe: fix tests [14.0][FIX] l10n_fr_ecotaxe: fix _onchange_product_ecotaxe_line [16.0][FIX] fix pre-commit & typo [16.0][FIX] update readme files
[16.0][FIX] product variant view [16.0][FIX] add unique sql constaint for ecotaxe classif on product
[16.0][IMP] rename fields in l10n_fr_ecotaxe module rest of modif & imp product view
[16.0][FIX] fix psot-migration view load bug [16.0][FIX] fix digits precision for ecotaxe amount on invoice & product & fixed ecotaxe [16.0][FIX] tests [16.0][FIX] replace onchange by compute [16.0][FIX] pre-commit
118ef15
to
a046ea6
Compare
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 5712b78. Thanks a lot for contributing to OCA. ❤️ |
Oops these modules has been hardly modified here OCA/account-fiscal-rule#428 Inside Ecotax use tax odoo mechanism |
#552 is reverting this |
It's our own fault. We had not a really good communication on it, sorry. |
No description provided.