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

[14.0][IMP] add tax_scope to account.product.fiscal.classification #439

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from

Conversation

TB-Ph35
Copy link

@TB-Ph35 TB-Ph35 commented Jun 24, 2024

add tax-scope to tax classification.
Tax in tax classification are filter with the values of the tax_scope.
On product, the tax_classification are filter with the type of product(consu or service)

@OCA-git-bot
Copy link
Contributor

Hi @legalsylvain,
some modules you are maintaining are being modified, check this out!

Comment on lines +36 to +43
@api.depends("type")
def _compute_type_identification(self):
for product in self:
if product.type == "product":
product.tax_scope_identification = "consu"
else:
product.tax_scope_identification = product.type

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add a new field on product.product. You could just base your domain on the product.type field ?

thanks !

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was the why i found to have the product.type "product" and "consu" on one label.
it may be to restrictive. but i don't found a other idea to get this.

Sorry, for the time. I misclick my answer

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.

3 participants