Skip to content
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] account_avatax_oca: Add Avatax retail price #22

Open
wants to merge 104 commits into
base: 16.0
Choose a base branch
from

Conversation

ChrisOForgeFlow
Copy link

Based on: OCA#294

@ChrisOForgeFlow ChrisOForgeFlow force-pushed the 16.0-fix-avatax-retail-price branch from 7104459 to 1a9ab77 Compare December 22, 2023 16:54
@ChrisOForgeFlow ChrisOForgeFlow force-pushed the 16.0-fix-avatax-retail-price branch from 1a9ab77 to 6777c27 Compare December 22, 2023 20:09
OCA-git-bot and others added 29 commits June 9, 2024 12:42
Signed-off-by legalsylvain
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_product_fiscal_classification
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_product_fiscal_classification/
Currently translated at 100.0% (59 of 59 strings)

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_product_fiscal_classification
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_product_fiscal_classification/it/
Currently translated at 100.0% (59 of 59 strings)

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_product_fiscal_classification
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_product_fiscal_classification/sv/
- In a context of product creation, if classification is not provided (in import context for exemple),
  link the products to an existing classification, if the taxes match an existing one.
  If no classification match, try to create a new classification, based on the product fiscal settings.
  (It will fail if user is not member of Accountant group that can create / write on fiscal classifications)
- In a context of product update, apply same logic, linking to existing classification, or creating new classification

This will fix current limitation if account_product_fiscal_classification and pos_sale (for exemple) is installed,
there is an error when making an update, because loading data / demo is failing for the time being if the fields
taxes_id or supplier_taxes_id is defined. See for exemple : pos_sale.default_downpayment_product that contains
{'taxes_id': '[(5,)]'} write.
Signed-off-by legalsylvain
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_avatax_oca
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_avatax_oca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_product_fiscal_classification
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_product_fiscal_classification/
Currently translated at 100.0% (34 of 34 strings)

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_avatax_sale_oca
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_avatax_sale_oca/it/
Currently translated at 100.0% (38 of 38 strings)

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-l10n_eu_oss_oca
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-l10n_eu_oss_oca/it/
Signed-off-by pedrobaeza
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-l10n_eu_oss_oca
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-l10n_eu_oss_oca/
We found a bug where the price when the decimal accuracy was 5,
the price would be automatically reset to the pricelist price after
saving the order. The reason was a wrong implementation of
onchange_reset_avatax_amount. In this test we demonstrate that
the error does not happen anymore.
We have observed that when we change the Product Unit of Measure to 5 decimals,
and we have a pricelist in the product, when the price is manually set by the
user and the order is saved, the price is reset to the product pricelist price.
The reason is that the change made to order_line during the onchange_reset_avatax_amount
in the sale.order.

In order to fix this, we do not change the order_line during the onchange_reset_avatax_amount
in sale.order, but at the time of saving, in the write method.
Currently translated at 100.0% (39 of 39 strings)

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-l10n_eu_oss_oca
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-l10n_eu_oss_oca/it/
Signed-off-by dreispt
Signed-off-by pedrobaeza
Currently translated at 100.0% (83 of 83 strings)

Translation: account-fiscal-rule-16.0/account-fiscal-rule-16.0-account_avatax_exemption_base
Translate-URL: https://translation.odoo-community.org/projects/account-fiscal-rule-16-0/account-fiscal-rule-16-0-account_avatax_exemption_base/it/
@ChrisOForgeFlow ChrisOForgeFlow force-pushed the 16.0-fix-avatax-retail-price branch from 6777c27 to f6ed244 Compare October 8, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.