-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
[15.0][mig]-account_invoice_line_description #1403
[15.0][mig]-account_invoice_line_description #1403
Conversation
/ocabot migration account_invoice_line_description |
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.
According to the code the description in the product is the only thing that should appear in the invoice line as label. However it is appearing a compound name, for example, for a sales order of a product with name "Widget" and description for sales "this is a widget" the label in the invoice line is "Widget this is a widget". Is that intended?
/ocabot migration account_invoice_line_description |
The migration issue (#1022) has been updated to reference the current pull request. |
Please @JuanyDForgeflow could you answer @AaronHForgeFlow ? |
…s; use description_sale or description_purchase depending on the invoice type
This addon test fails if the `sale` addon is installed, with: ERROR: setUpClass (odoo.addons.account_invoice_line_description.tests.test_account_invoice_line_description.TestAccountInvoiceLineDescription) Traceback (most recent call last): ` File "/opt/odoo/auto/addons/account_invoice_line_description/tests/test_account_invoice_line_description.py", line 33, in setUpClass ` 'description_sale': 'Test Description Sale', ` File "/opt/odoo/auto/addons/product/models/product.py", line 320, in create ` product = super(ProductProduct, self.with_context(create_product_product=True)).create(vals) ` File "/opt/odoo/auto/addons/mail/models/mail_thread.py", line 228, in create ` thread = super(MailThread, self).create(values) ` File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3847, in create ` record = self.browse(self._create(old_vals)) ` File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3908, in _create ` parent_id = self.env[parent_model].create(parent_vals).id ` File "/opt/odoo/auto/addons/product/models/product_template.py", line 267, in create ` template = super(ProductTemplate, self).create(vals) ` File "/opt/odoo/auto/addons/mail/models/mail_thread.py", line 228, in create ` thread = super(MailThread, self).create(values) ` File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3847, in create ` record = self.browse(self._create(old_vals)) ` File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3942, in _create ` cr.execute(query, tuple(u[2] for u in updates if len(u) > 2)) ` File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 154, in wrapper ` return f(self, *args, **kwargs) ` File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 231, in execute ` res = self._obj.execute(query, params) ` IntegrityError: null value in column "sale_line_warn" violates not-null constraint ` DETAIL: Failing row contains (41, null, 1.00, null, 1, null, 1, 1, null, null, 2018-05-15 08:03:37.480628, 1, t, t, null, 1, 1, Test Description Sale, null, null, 2018-05-15 08:03:37.480628, t, 7, Test Sale Product, f, consu, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null).
Currently translated at 40.0% (2 of 5 strings) Translation: account-invoicing-11.0/account-invoicing-11.0-account_invoice_line_description Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-account_invoice_line_description/es/
Currently translated at 100.0% (5 of 5 strings) Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_line_description Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_line_description/it/
Currently translated at 100.0% (5 of 5 strings) Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_line_description Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_line_description/de/
Currently translated at 100.0% (5 of 5 strings) Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_line_description Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_line_description/es/
Currently translated at 100.0% (5 of 5 strings) Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_line_description Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_line_description/pt_BR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-14.0/account-invoicing-14.0-account_invoice_line_description Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_invoice_line_description/
91da5ea
to
45b051f
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.
@rafaelbn I checked and in v14 the behaviour is not the same, the product label is not in the description. So that must be fixed.
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.
Last commit makes this to behave same as v14. I will wait for others to review before merging it.
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
This PR has the |
Congratulations, your PR was merged at e71f956. Thanks a lot for contributing to OCA. ❤️ |
No description provided.