Skip to Content

Contributors

Re: Tax and account mapping depending of the product/category

Not quite Pedro, OSS afaik is mapping based on the country of the actual 
delivery (plus some edge cases).

Best Frederik

Am 11.07.22 um 09:56 schrieb Pedro M. Baeza (Tecnativa):

> Isn't this OSS? https://github.com/OCA/account-fiscal-rule/tree/14.0/l10n_eu_oss [1]

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [2]

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [3]

>

>

>

> [1] https://github.com/OCA/account-fiscal-rule/tree/14.0/l10n_eu_oss

> [2] https://odoo-community.org/groups/contributors-15

> [3] https://odoo-community.org/groups?unsubscribe

>

-- 
Dr.-Ing. Frederik Kramer
Geschäftsführer

initOS GmbH
Innungsstraße 7
21244 Buchholz i.d.N.

Phone:  +49 4181 13503-12
Fax:    +49 4181 13503-10
Mobil:  +49 179 3901819

Email: frederik.kramer@initos.com
Web:   www.initos.com

Geschäftsführung:
Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke

Sitz der Gesellschaft: Buchholz i.d.N.
Amtsgericht Tostedt, HRB 205226
Steuer-Nr: 15/200/53247
USt-IdNr.: DE815580155


by Frederik Kramer - 10:40 - 11 Jul 2022

Reference

  • Tax and account mapping depending of the product/category

    Hi all I have created a discussion on github here (maybe easier to discuss and to keep an history)

    https://github.com/OCA/account-fiscal-rule/discussions/298


    I copy/paste the description of the discussion


    Issue

    When selling in Europe (or only in France but with some special dom-tom case), you need to apply local tax when reaching a certain amount. And sometime you need to map the tax (and also the account) depending of the product.

    For example you sell products A and B with the tax 20% in France
    But you need to sell it with a tax 13% for product A and 16% for product B in some fiscal position.

    Right now it's impossible to do it



    Solution

    I would like to introduce a new module account_fiscal_product_rule

    That will have the following data models

    
    class AccountFiscalPositionProductRule():
    
        name = fields.Char()
        fiscal_position_id = fields.Many2one("account.fiscal.position")
        product_tmpl_ids = fields.Many2many("product.template")
        category_ids = fields.Many2many("product.category")
        account_income_id = fields.Many2one("account.account")
        account_expense_id = fields.Many2one("account.account")
        seller_tax_ids = fields.Many2Many("account.tax")
        supplier_tax_ids = fields.Many2Many("account.tax")
    
    
    class ProductCategory():
    
        fiscal_position_product_rule_ids = fields.Many2many("account.fiscal.position.product.rule")
    
    
    class ProductTemplate():
    
        fiscal_position_product_rule_ids = fields.Many2many("account.fiscal.position.product.rule")
    
    
    

    Then we can inherit the mapping logic (tax and account) to apply first this "specific rule" and if not rule match apply native rules

    Describe alternatives you've considered

    I had thinking about adding product_ids and category_ids on "account.fiscal.position.account" and "account.fiscal.position.tax". But the UI not really good for end user (too much configuration), and code will be not so easy to inherit.



    Thanks for your feedback (please put it in github)


    by Sébastien Beau - 09:45 - 11 Jul 2022