Repository
OCA/account-fiscal-rule · module folder · Try on Runboat
Module version
1.3.1
Category
Generic Modules/Accounting
Folder size
1.58 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-fiscal-rule
Last tracking update
2026-08-07 07:38:32
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
root, Pedro M. Baeza, JordiMForgeFlow, Thomas Binsfeld, Weblate, OCA Transbot, OCA-git-bot, oca-travis, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_fiscal_position_rule_purchase, account_fiscal_position_rule_sale
Description

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
view_account_fiscal_position_rule_form account.fiscal.position.rule.form account.fiscal.position.rule form New
view_account_fiscal_position_rule_search account.fiscal.position.rule.search account.fiscal.position.rule search New
view_account_fiscal_position_rule_template_form account.fiscal.position.rule.template.form account.fiscal.position.rule.template form New
view_account_fiscal_position_rule_template_search account.fiscal.position.rule.template.search account.fiscal.position.rule.template search New
view_account_fiscal_position_rule_template_tree account.fiscal.position.rule.template.tree account.fiscal.position.rule.template tree New
view_account_fiscal_position_rule_tree account.fiscal.position.rule.tree account.fiscal.position.rule tree New
view_account_position_form account.fiscal.position.form (in account_fiscal_position_rule) account.fiscal.position form Inherits account.view_account_position_form
view_wizard_account_fiscal_position_rule Generate Fiscal Positions Rules from Templates wizard.account.fiscal.position.rule form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (2)
  • fiscal_position_rule_count Integer
    compute='_compute_fiscal_position_rule_count'
  • fiscal_position_rule_ids One2many → account.fiscal.position.rule
    comodel_name='account.fiscal.position.rule' inverse_name='fiscal_position_id' readonly=True string='Fiscal Position Rules'
Public methods (2)
  • action_fiscal_position_rules(self)
  • get_fiscal_position(self, partner_id, delivery_id=None)
    @api.model

New fields (21)
  • company_id Many2one → res.company
    comodel_name='res.company' index=True required=True sting='Company'
  • date_end Date
    help='Ending date for this rule to be valid.' string='End Date'
  • date_start Date
    help='Starting date for this rule to be valid.' string='Start Date'
  • description Char
    string='Description'
  • fiscal_position_id Many2one → account.fiscal.position
    comodel_name='account.fiscal.position' domain="[('company_id','=',company_id)]" index=True required=True string='Fiscal Position'
  • from_country Many2one → res.country
    comodel_name='res.country' string='Country From'
  • from_country_group_id Many2one → res.country.group
    comodel_name='res.country.group' ondelete='restrict' string='Country group from'
  • from_state Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id', '=', from_country)]" string='State From'
  • name Char
    required=True string='Name'
  • sequence Integer
    default=10 help='The lowest number will be applied.' required=True string='Priority'
  • to_invoice_country Many2one → res.country
    comodel_name='res.country' string='Invoice Country'
  • to_invoice_country_group_id Many2one → res.country.group
    comodel_name='res.country.group' ondelete='restrict' string='Invoice Country Group'
  • to_invoice_state Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id','=',to_invoice_country)]" string='Invoice State'
  • to_shipping_country Many2one → res.country
    comodel_name='res.country' string='Destination Country'
  • to_shipping_country_group_id Many2one → res.country.group
    comodel_name='res.country.group' ondelete='restrict' string='Destination Country Group'
  • to_shipping_state Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id','=',to_shipping_country)]" string='Destination State'
  • use_invoice Boolean
    string='Use in Invoices'
  • use_picking Boolean
    string='Use in Picking'
  • use_purchase Boolean
    string='Use in Purchases'
  • use_sale Boolean
    string='Use in Sales'
  • vat_rule Selection
    help='Choose if the customer need to have the field VAT fill for using this fiscal position' selection=[('with', 'With VAT number'), ('both', 'With or Without VAT number'), ('without', 'Without VAT number')] string='VAT Rule'
Public methods (3)
  • apply_fiscal_mapping(self, **kwargs)
  • fiscal_position_map(self, **kwargs)
  • onchange_company(self)
    @api.onchange('company_id')

New fields (20)
  • date_end Date
    help='Ending date for this rule to be valid.' string='End Date'
  • date_start Date
    help='Starting date for this rule to be valid.' string='Start Date'
  • description Char
    string='Description'
  • fiscal_position_id Many2one → account.fiscal.position.template
    comodel_name='account.fiscal.position.template' required=True string='Fiscal Position'
  • from_country Many2one → res.country
    comodel_name='res.country' string='Country Form'
  • from_country_group_id Many2one → res.country.group
    comodel_name='res.country.group' ondelete='restrict' string='Country group from'
  • from_state Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id','=',from_country)]" string='State From'
  • name Char
    required=True string='Name'
  • sequence Integer
    default=10 help='The lowest number will be applied.' required=True string='Priority'
  • to_invoice_country Many2one → res.country
    comodel_name='res.country' string='Country To'
  • to_invoice_country_group_id Many2one → res.country.group
    comodel_name='res.country.group' ondelete='restrict' string='Invoice Country Group'
  • to_invoice_state Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id','=',to_invoice_country)]" string='State To'
  • to_shipping_country Many2one → res.country
    comodel_name='res.country' string='Destination Country'
  • to_shipping_country_group_id Many2one → res.country.group
    comodel_name='res.country.group' ondelete='restrict' string='Destination Country Group'
  • to_shipping_state Many2one → res.country.state
    comodel_name='res.country.state' domain="[('country_id','=',to_shipping_country)]" string='Destination State'
  • use_invoice Boolean
    string='Use in Invoices'
  • use_picking Boolean
    string='Use in Picking'
  • use_purchase Boolean
    string='Use in Purchases'
  • use_sale Boolean
    string='Use in Sales'
  • vat_rule Selection
    default='both' help='Choose if the customer need to have the field VAT fill for using this fiscal position' selection=[('with', 'With VAT number'), ('both', 'With or Without VAT number'), ('without', 'Without VAT number')] string='VAT Rule'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
Public methods (1)
  • action_create(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
no CI data
Open since
1242 days ago
Last activity
863 days ago
Repository
OCA/account-fiscal-rule
Pull request
[14.0][MIG] account_fiscal_position_rule (#356)