Billing Process

account_billing
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/18.0/account_billing
VERSION
VERSION 1.4.0
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Aungkokolin1997, Morita Shinnosuke, yostashiro
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
In some countries, there is a customary practice for companies to
collect money from their customers only once in a month. For example,
the customer has 3 payments due in a given month, the vendor or billing
company should group all the due AR Invoices in a document call Billing
Document and issue it with all the invoices consolidated to the customer
on the Billing Day. The customer will be paying based on the payable
amount shown in Billing Document in the following month.

This module use a new document called "Billing" to group these invoices
together.

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
report_billing report_billing ir.ui.view qweb New
report_billing_document report_billing_document ir.ui.view qweb New
view_account_billing_form account.billing.form account.billing form New
view_account_billing_tree account.billing.list account.billing list New
view_account_supplier_billing_tree account.supplier.billing.list account.billing list New
view_billing_search account.billing.search account.billing search New
view_invoice_tree account.invoice.tree account.move xpath Inherits account.view_invoice_tree
view_move_form account.move.form.inherit.view.billing account.move xpath Inherits account.view_move_form
Models touched (3)

New fields (13)
  • bill_type Selection
    default=<expr> help='Type of invoice' readonly=True selection=[('out_invoice', 'Customer Invoice'), ('in_invoice', 'Vendor Bill')]
  • billing_line_ids One2many → account.billing.line
    comodel_name='account.billing.line' inverse_name='billing_id' readonly=True string='Bill Lines'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> help='Leave this field empty if this route is shared between all companies' index=True string='Company'
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr> help='Currency' readonly=True required=True string='Currency'
  • date Date
    default=fields.Date.context_today help='Effective date for accounting entries' readonly=True string='Billing Date' tracking=True
  • invoice_related_count Integer
    compute='_compute_invoice_related_count' help='Count invoice in billing' string='# of Invoices'
  • name Char
    copy=False help='Number of account.billing' readonly=True
  • narration Html
    help='Notes' readonly=True string='Notes'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' help='Partner Information' required=True tracking=True
  • payment_paid_all Boolean
    compute='_compute_payment_paid_all' store=True
  • state Selection
    default='draft' help="\n * The 'Draft' status is used when a user create a new billing\n\n * The 'Billed' status is used when user confirmed billing,\n billing number is generated\n\n * The 'Cancelled' status is used when user billing is cancelled\n " readonly=True selection=[('draft', 'Draft'), ('cancel', 'Cancelled'), ('billed', 'Billed')] string='Status'
  • threshold_date Date
    default=<expr> help='All invoices with date (threshold date type) before and equal to threshold date will be listed in billing lines' readonly=True required=True tracking=True
  • threshold_date_type Selection
    default=<expr> help='All invoices with date (threshold date type) before and equal to threshold date will be listed in billing lines' readonly=True required=True selection=[('invoice_date_due', 'Due Date'), ('invoice_date', 'Invoice Date')]
Public methods (7)
  • action_cancel(self)
  • action_cancel_draft(self)
  • action_register_payment(self)
  • compute_lines(self)
  • invoice_relate_billing_tree_view(self)
  • name_get(self)
  • validate_billing(self)

New fields (11)
  • amount_residual Monetary
    compute='_compute_amount_residual' store=True string='Amount Due'
  • amount_total Monetary
    readonly=True string='Total'
  • billing_id Many2one → account.billing
    comodel_name='account.billing'
  • currency_id Many2one
    related='move_id.currency_id'
  • invoice_date Date
    compute='_compute_invoice_date'
  • move_id Many2one → account.move
    comodel_name='account.move' index=True
  • name Char
    related='move_id.name'
  • origin Char
    related='move_id.invoice_origin'
  • payment_state Selection
    related='move_id.payment_state'
  • sequence Integer
    default=10
  • state Selection
    related='move_id.state'
Public methods (0)

No public methods.

New fields (2)
  • billing_ids Many2many → account.billing
    comodel_name='account.billing' compute='_compute_billing_ids' groups='account.group_account_invoice' help='Relationship between invoice and billing' string='Billings'
  • billing_line_ids One2many → account.billing.line
    comodel_name='account.billing.line' help='Billing lines that reference this invoice' inverse_name='move_id' string='Billing Lines'
Public methods (2)
  • action_create_billing(self)
  • button_draft(self)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/16.0/account_billing
VERSION
VERSION 1.2.2
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Saran440, Aungkokolin1997, Morita Shinnosuke, santostelmo
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:52
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
report_billing report_billing ir.ui.view qweb New
report_billing_document report_billing_document ir.ui.view qweb New
view_account_billing_form account.billing.form account.billing form New
view_account_billing_tree account.billing.tree account.billing tree New
view_account_supplier_billing_tree account.supplier.billing.tree account.billing tree New
view_billing_search account.billing.search account.billing search New
view_invoice_tree account.invoice.tree account.move xpath Inherits account.view_invoice_tree
view_move_form account.move.form.inherit.view.billing account.move xpath Inherits account.view_move_form
Models touched (3)

New fields (13)
  • bill_type Selection
    default=<expr> help='Type of invoice' readonly=True selection=[('out_invoice', 'Customer Invoice'), ('in_invoice', 'Vendor Bill')] states={'draft': [('readonly', False)]}
  • billing_line_ids One2many → account.billing.line
    comodel_name='account.billing.line' inverse_name='billing_id' readonly=True states={'draft': [('readonly', False)]} string='Bill Lines'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> help='Leave this field empty if this route is shared between all companies' index=True string='Company'
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr> help='Currency' readonly=True required=True states={'draft': [('readonly', False)]} string='Currency'
  • date Date
    default=fields.Date.context_today help='Effective date for accounting entries' readonly=True states={'draft': [('readonly', False)]} string='Billing Date' tracking=True
  • invoice_related_count Integer
    compute='_compute_invoice_related_count' help='Count invoice in billing' string='# of Invoices'
  • name Char
    copy=False help='Number of account.billing' readonly=True
  • narration Html
    help='Notes' readonly=True states={'draft': [('readonly', False)]} string='Notes'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' help='Partner Information' required=True tracking=True
  • payment_paid_all Boolean
    compute='_compute_payment_paid_all' store=True
  • state Selection
    default='draft' help="\n * The 'Draft' status is used when a user create a new billing\n\n * The 'Billed' status is used when user confirmed billing,\n billing number is generated\n\n * The 'Cancelled' status is used when user billing is cancelled\n " readonly=True selection=[('draft', 'Draft'), ('cancel', 'Cancelled'), ('billed', 'Billed')] string='Status'
  • threshold_date Date
    default=<expr> help='All invoices with date (threshold date type) before and equal to threshold date will be listed in billing lines' readonly=True required=True states={'draft': [('readonly', False)]} tracking=True
  • threshold_date_type Selection
    default='invoice_date_due' help='All invoices with date (threshold date type) before and equal to threshold date will be listed in billing lines' readonly=True required=True selection=[('invoice_date_due', 'Due Date'), ('invoice_date', 'Invoice Date')] states={'draft': [('readonly', False)]}
Public methods (7)
  • action_cancel(self)
  • action_cancel_draft(self)
  • action_register_payment(self)
  • compute_lines(self)
  • invoice_relate_billing_tree_view(self)
  • name_get(self)
  • validate_billing(self)

New fields (11)
  • amount_residual Monetary
    compute='_compute_amount_residual' store=True string='Amount Due'
  • amount_total Monetary
    readonly=True string='Total'
  • billing_id Many2one → account.billing
    comodel_name='account.billing'
  • currency_id Many2one
    related='move_id.currency_id'
  • invoice_date Date
    related='move_id.invoice_date'
  • move_id Many2one → account.move
    comodel_name='account.move' index=True
  • name Char
    related='move_id.name'
  • origin Char
    related='move_id.invoice_origin'
  • payment_state Selection
    related='move_id.payment_state'
  • state Selection
    related='move_id.state'
  • threshold_date Date
    related='move_id.invoice_date_due'
Public methods (0)

No public methods.

New fields (1)
  • billing_ids Many2many → account.billing
    comodel_name='account.billing' compute='_compute_billing_ids' help='Relationship between invoice and billing' string='Billings'
Public methods (1)
  • action_create_billing(self)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/14.0/account_billing
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSEnric Tobella, OCA Transbot, Miquel Raïch, João Marques, oca-travis, Weblate, OCA-git-bot, Magno Costa, Kitti U, newtratip, oca-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:04
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
report_billing report_billing ir.ui.view qweb New
report_billing_document report_billing_document ir.ui.view qweb New
view_account_billing_form account.billing.form account.billing form New
view_account_billing_tree account.billing.tree account.billing tree New
view_account_supplier_billing_tree account.supplier.billing.tree account.billing tree New
view_billing_search account.billing.search account.billing search New
view_move_form account.move.form.inherit.view.billing account.move xpath Inherits account.view_move_form
Models touched (3)

New fields (12)
  • bill_type Selection
    default=<expr> help='Type of invoice' readonly=True selection=[('out_invoice', 'Customer Invoice'), ('in_invoice', 'Vendor Bill')] states={'draft': [('readonly', False)]}
  • billing_line_ids One2many → account.billing.line
    comodel_name='account.billing.line' inverse_name='billing_id' readonly=True states={'draft': [('readonly', False)]} string='Bill Lines'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> help='Leave this field empty if this route is shared between all companies' index=True string='Company'
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr> help='Currency' readonly=True required=True states={'draft': [('readonly', False)]} string='Currency'
  • date Date
    default=fields.Date.context_today help='Effective date for accounting entries' readonly=True states={'draft': [('readonly', False)]} string='Billing Date' tracking=True
  • invoice_related_count Integer
    compute='_compute_invoice_related_count' help='Count invoice in billing' string='# of Invoices'
  • name Char
    copy=False help='Number of account.billing' readonly=True
  • narration Text
    help='Notes' readonly=True states={'draft': [('readonly', False)]} string='Notes'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' default=<expr> help='Partner Information' required=True tracking=True
  • state Selection
    default='draft' help="\n * The 'Draft' status is used when a user create a new billing\n\n * The 'Billed' status is used when user confirmed billing,\n billing number is generated\n\n * The 'Cancelled' status is used when user billing is cancelled\n " readonly=True selection=[('draft', 'Draft'), ('cancel', 'Cancelled'), ('billed', 'Billed')] string='Status'
  • threshold_date Date
    default=<expr> help='All invoices with date (threshold date type) before and equal to threshold date will be listed in billing lines' readonly=True required=True states={'draft': [('readonly', False)]} string='Threshold Date' tracking=True
  • threshold_date_type Selection
    default='invoice_date_due' help='All invoices with date (threshold date type) before and equal to threshold date will be listed in billing lines' readonly=True required=True selection=[('invoice_date_due', 'Due Date'), ('invoice_date', 'Invoice Date')] states={'draft': [('readonly', False)]}
Public methods (5)
  • action_cancel(self)
  • action_cancel_draft(self)
  • invoice_relate_billing_tree_view(self)
  • name_get(self)
  • validate_billing(self)

New fields (9)
  • billing_id Many2one → account.billing
    comodel_name='account.billing'
  • invoice_date Date
    related='invoice_id.invoice_date'
  • invoice_id Many2one → account.move
    comodel_name='account.move'
  • name Char
    related='invoice_id.name'
  • origin Char
    related='invoice_id.invoice_origin'
  • payment_state Selection
    related='invoice_id.payment_state'
  • state Selection
    related='invoice_id.state'
  • threshold_date Date
    related='invoice_id.invoice_date_due'
  • total Float
Public methods (0)

No public methods.

New fields (1)
  • billing_ids Many2many → account.billing
    comodel_name='account.billing' compute='_compute_billing_ids' help='Relationship between invoice and billing' string='Billings'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/13.0/account_billing
VERSION
VERSION 1.0.5
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSJordi Ballester, OCA Transbot, Miquel Raïch, Víctor Martínez, oca-travis, Weblate, OCA-git-bot, Saran440, CarlosRoca13
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:16
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
report_billing report_billing ir.ui.view qweb New
report_billing_document report_billing_document ir.ui.view qweb New
view_account_billing_form account.billing.form account.billing form New
view_account_billing_tree account.billing.tree account.billing tree New
view_account_supplier_billing_tree account.supplier.billing.tree account.billing tree New
view_billing_search account.billing.search account.billing search New
view_move_form account.move.form.inherit.view.billing account.move xpath Inherits account.view_move_form
Models touched (3)

New fields (12)
  • bill_type Selection
    default=<expr> help='Type of invoice' readonly=True selection=[('out_invoice', 'Customer Invoice'), ('in_invoice', 'Vendor Bill')] states={'draft': [('readonly', False)]}
  • billing_line_ids One2many → account.billing.line
    comodel_name='account.billing.line' inverse_name='billing_id' readonly=True states={'draft': [('readonly', False)]} string='Bill Lines'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> help='Leave this field empty if this route is shared between all companies' index=True string='Company'
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr> help='Currency' readonly=True required=True states={'draft': [('readonly', False)]} string='Currency'
  • date Date
    default=fields.Date.context_today help='Effective date for accounting entries' readonly=True states={'draft': [('readonly', False)]} string='Billing Date' tracking=True
  • invoice_related_count Integer
    compute='_compute_invoice_related_count' help='Count invoice in billing' string='# of Invoices'
  • name Char
    copy=False help='Number of account.billing' readonly=True
  • narration Text
    help='Notes' readonly=True states={'draft': [('readonly', False)]} string='Notes'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' default=<expr> help='Partner Information' required=True tracking=True
  • state Selection
    default='draft' help="\n * The 'Draft' status is used when a user create a new billing\n\n * The 'Billed' status is used when user confirmed billing,\n billing number is generated\n\n * The 'Cancelled' status is used when user billing is cancelled\n " readonly=True selection=[('draft', 'Draft'), ('cancel', 'Cancelled'), ('billed', 'Billed')] string='Status'
  • threshold_date Date
    default=<expr> readonly=True required=True states={'draft': [('readonly', False)]} string='Threshold Date' tracking=True
  • threshold_date_type Selection
    default='invoice_date_due' readonly=True required=True selection=[('invoice_date_due', 'Due Date'), ('invoice_date', 'Invoice Date')] states={'draft': [('readonly', False)]}
Public methods (5)
  • action_cancel(self)
  • action_cancel_draft(self)
  • invoice_relate_billing_tree_view(self)
  • name_get(self)
  • validate_billing(self)

New fields (8)
  • billing_id Many2one → account.billing
    comodel_name='account.billing'
  • invoice_date Date
    related='invoice_id.invoice_date'
  • invoice_id Many2one → account.move
    comodel_name='account.move'
  • name Char
    related='invoice_id.name'
  • origin Char
    related='invoice_id.invoice_origin'
  • state Selection
    related='invoice_id.state'
  • threshold_date Date
    related='invoice_id.invoice_date_due'
  • total Float
Public methods (0)

No public methods.

New fields (1)
  • billing_ids Many2many → account.billing
    comodel_name='account.billing' compute='_compute_billing_ids' help='Relationship between invoice and billing' string='Billings'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/12.0/account_billing
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot, sergiocorato, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
invoice_form account.invoice.form.inherit.view.billing account.invoice xpath Inherits account.invoice_form
invoice_supplier_form account.invoice.supplier.form.inherit.view.billing account.invoice xpath Inherits account.invoice_supplier_form
report_billing report_billing ir.ui.view qweb New
report_billing_document report_billing_document ir.ui.view qweb New
view_account_billing_form account.billing.form account.billing form New
view_account_billing_tree account.billing.tree account.billing tree New
view_account_supplier_billing_tree account.supplier.billing.tree account.billing tree New
view_billing_search account.billing.search account.billing search New
Models touched (3)

New fields (12)
  • bill_type Selection
    default=<expr> help='Type of invoice' readonly=True selection=[('out_invoice', 'Customer Invoice'), ('in_invoice', 'Vendor Bill')] states={'draft': [('readonly', False)]}
  • billing_line_ids One2many → account.billing.line
    comodel_name='account.billing.line' inverse_name='billing_id' readonly=True states={'draft': [('readonly', False)]} string='Bill Lines'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> help='Leave this field empty if this route is shared between all companies' index=True string='Company'
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr> help='Currency' readonly=True required=True states={'draft': [('readonly', False)]} string='Currency'
  • date Date
    default=fields.Date.context_today help='Effective date for accounting entries' readonly=True states={'draft': [('readonly', False)]} string='Billing Date' track_visibility='always'
  • invoice_related_count Integer
    compute='_compute_invoice_related_count' help='Count invoice in billing' string='# of Invoices'
  • name Char
    copy=False help='Number of account.billing' readonly=True
  • narration Text
    help='Notes' readonly=True states={'draft': [('readonly', False)]} string='Notes'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' default=<expr> help='Partner Information' required=True track_visibility='always'
  • state Selection
    default='draft' help="\n * The 'Draft' status is used when a user create a new billing\n\n * The 'Billed' status is used when user confirmed billing,\n billing number is generated\n\n * The 'Cancelled' status is used when user billing is cancelled\n " readonly=True selection=[('draft', 'Draft'), ('cancel', 'Cancelled'), ('billed', 'Billed')] string='Status'
  • threshold_date Date
    default=<expr> readonly=True required=True states={'draft': [('readonly', False)]} string='Threshold Date' track_visibility='always'
  • threshold_date_type Selection
    default='date_due' readonly=True required=True selection=[('date_due', 'Due Date'), ('date_invoice', 'Invoice Date')] states={'draft': [('readonly', False)]}
Public methods (5)
  • action_cancel(self)
    @api.multi
  • action_cancel_draft(self)
    @api.multi
  • invoice_relate_billing_tree_view(self)
    @api.multi
  • name_get(self)
    @api.multi
  • validate_billing(self)
    @api.multi

New fields (8)
  • billing_id Many2one → account.billing
    comodel_name='account.billing'
  • invoice_date Date
    related='invoice_id.date_invoice'
  • invoice_id Many2one → account.invoice
    comodel_name='account.invoice'
  • number Char
    related='invoice_id.number'
  • origin Char
    related='invoice_id.origin'
  • state Selection
    related='invoice_id.state'
  • threshold_date Date
    related='invoice_id.date_due'
  • total Float
Public methods (0)

No public methods.

New fields (1)
  • billing_ids Many2many → account.billing
    comodel_name='account.billing' compute='_compute_billing_ids' help='Relationship between invoice and billing' string='Biilings'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-invoicing
PULL REQUEST
PULL REQUEST[19.0][MIG] account_billing: Migration to 19.0 (#2349)