Account Fiscal Position Rule

account_fiscal_position_rule
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/13.0/account_fiscal_position_rule
VERSION
VERSION 1.3.1
CATEGORY
CATEGORYGeneric Modules/Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSPedro M. Baeza, root, OCA Transbot, JordiMForgeFlow, Thomas Binsfeld, oca-travis, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-fiscal-rule
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - l10n_generic_coa
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 div 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
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)
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/10.0/account_fiscal_position_rule
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, OCA-git-bot, Yogesh Kushwaha
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:54
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
    - l10n_generic_coa
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
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_wizard_account_fiscal_position_rule Generate Fiscal Positions Rules from Templates wizard.account.fiscal.position.rule form New
Models touched (4)

New fields (18)
  • 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_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_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_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 order'
  • 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)
    @api.multi
  • fiscal_position_map(self, **kwargs)
    @api.multi
  • onchange_company(self)
    @api.onchange('company_id')

New fields (17)
  • 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_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_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_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 order'
  • 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)
    @api.multi
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/9.0/account_fiscal_position_rule
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, OCA-git-bot, Magno Costa - Akretion
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
    - l10n_generic_coa
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
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_wizard_account_fiscal_position_rule Generate Fiscal Positions Rules from Templates wizard.account.fiscal.position.rule form New
Models touched (4)

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

New fields (17)
  • date_end Date
    help='Ending date for this rule to be valid.' args: 'End Date'
  • date_start Date
    help='Starting date for this rule to be valid.' args: 'Start Date'
  • description Char
    args: 'Description'
  • fiscal_position_id Many2one → account.fiscal.position.template
    required=True args: 'account.fiscal.position.template', 'Fiscal Position'
  • from_country Many2one → res.country
    args: 'res.country', 'Country Form'
  • from_state Many2one → res.country.state
    domain="[('country_id','=',from_country)]" args: 'res.country.state', 'State From'
  • name Char
    required=True args: 'Name'
  • sequence Integer
    default=10 help='The lowest number will be applied.' required=True args: 'Priority'
  • to_invoice_country Many2one → res.country
    args: 'res.country', 'Country To'
  • to_invoice_state Many2one → res.country.state
    domain="[('country_id','=',to_invoice_country)]" args: 'res.country.state', 'State To'
  • to_shipping_country Many2one → res.country
    args: 'res.country', 'Destination Country'
  • to_shipping_state Many2one → res.country.state
    domain="[('country_id','=',to_shipping_country)]" args: 'res.country.state', 'Destination State'
  • use_invoice Boolean
    args: 'Use in Invoices'
  • use_picking Boolean
    args: 'Use in Picking'
  • use_purchase Boolean
    args: 'Use in Purchases'
  • use_sale Boolean
    args: 'Use in sales order'
  • vat_rule Selection
    default='both' help='Choose if the customer need to have the field VAT fill for using this fiscal position' args: [('with', 'With VAT number'), ('both', 'With or Without VAT number'), ('without', 'Without VAT number')], '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
    default=<expr> required=True args: 'res.company', 'Company'
Public methods (1)
  • action_create(self)
    @api.multi
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/8.0/account_fiscal_position_rule
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYGeneric Modules/Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Alexandre Fayolle, Raphaël Valyi, Sandy Carter, Renato Lima, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, OCA-git-bot, Raphael Valyi
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Include a rule to decide the correct fiscal position

Code Analysis

Views touched (7)
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_wizard_account_fiscal_position_rule Generate Fiscal Positions Rules from Templates wizard.account.fiscal.position.rule form New
Models touched (4)

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

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

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • onchange_company_id(self, company_id, part_id, type, invoice_line, currency_id)
    @api.multi
  • onchange_partner_id(self, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False)
    @api.multi

New fields (1)
  • company_id Many2one → res.company
    default=<expr> required=True args: 'res.company', 'Company'
Public methods (1)
  • action_create(self)
    @api.multi
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/7.0/account_fiscal_position_rule
VERSION
VERSION 1.2
CATEGORY
CATEGORYGeneric Modules/Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSYannick Vaucher, Lorenzo Battistini, Alexandre Fayolle, Raphaël Valyi, Renato Lima, Pedro M. Baeza, Launchpad Translations on behalf of account-core-editors, Alberto Garcia, moylop260
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Include a rule to decide the correct fiscal position

Code Analysis

Views touched (9)
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_fiscal_position_rule_form1 account.fiscal.position.rule.invoice.form1 account.invoice field Inherits account.invoice_form
view_fiscal_position_rule_form3 account.fiscal.position.rule.invoice.form3 account.invoice field Inherits account.invoice_supplier_form
view_wizard_account_fiscal_position_rule Generate Fiscal Positions Rules from Templates wizard.account.fiscal.position.rule form New
Models touched (3)

New fields (0)

No new fields.

Public methods (2)
  • apply_fiscal_mapping(self, cr, uid, result, **kwargs)
  • fiscal_position_map(self, cr, uid, partner_id=None, partner_invoice_id=None, partner_shipping_id=None, company_id=None, context=None, **kwargs)

New fields (0)

No new fields.

Public methods (2)
  • onchange_company_id(self, cr, uid, ids, company_id, partner_id, type, invoice_line, currency_id)
  • onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False)

New fields (0)

No new fields.

Public methods (1)
  • action_create(self, cr, uid, ids, context=None)
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/6.1/account_fiscal_position_rule
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYGeneric Modules/Accounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSYannick Vaucher, Alexandre Fayolle, sebastien beau, Kinner Vachhani
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - product
    - process
    - decimal_precision
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Include a rule to decide the correct fiscal position

Code Analysis

Views touched (9)
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_fiscal_position_rule_form1 account.fiscal.position.rule.invoice.form1 account.invoice field Inherits account.invoice_form
view_fiscal_position_rule_form3 account.fiscal.position.rule.invoice.form3 account.invoice field Inherits account.invoice_supplier_form
view_wizard_account_fiscal_position_rule Generate Fiscal Positions Rules from Templates wizard.account.fiscal.position.rule form New
Models touched (0)

No models found for this module.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
PULL REQUEST
PULL REQUEST[14.0][MIG] account_fiscal_position_rule (#356)