summaryrefslogtreecommitdiff
path: root/addons/account/models/company.py
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-02-28 10:01:11 +0000
committerwan <wan@odoo.com>2019-04-02 11:11:00 +0000
commit46a339fc9e98e4bb2604a272bc6a90c7ea2a416f (patch)
tree62d73de9da7935752a70a54eae700d8840de295a /addons/account/models/company.py
parent76c25f1c3cd82b911b91a1593a6002897aa67eda (diff)
[ADD] account: new european invoice reference
Task 1920906 Rework of the invoice references. We can now select references based on partner or on invoice number, and the Odoo way, or the (newly implemented) european way (SEPA RF references) The reference type informations are no longer stored on the company but on the sales journals
Diffstat (limited to 'addons/account/models/company.py')
-rw-r--r--addons/account/models/company.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/account/models/company.py b/addons/account/models/company.py
index 16ecc7fa62d..abff7bbd861 100644
--- a/addons/account/models/company.py
+++ b/addons/account/models/company.py
@@ -31,9 +31,6 @@ MONTH_SELECTION = [
class ResCompany(models.Model):
_inherit = "res.company"
- def _get_invoice_reference_types(self):
- return [('invoice_number', _('Based on Invoice Number')), ('partner', _('Based on Customer'))]
-
#TODO check all the options/fields are in the views (settings + company form view)
fiscalyear_last_day = fields.Integer(default=31, required=True)
fiscalyear_last_month = fields.Selection(MONTH_SELECTION, default='12', required=True)
@@ -80,8 +77,6 @@ Best Regards,'''))
incoterm_id = fields.Many2one('account.incoterms', string='Default incoterm',
help='International Commercial Terms are a series of predefined commercial terms used in international transactions.')
- invoice_reference_type = fields.Selection(string='Default Communication Type', selection='_get_invoice_reference_types',
- default='invoice_number', help='You can set here the default communication that will appear on customer invoices, once validated, to help the customer to refer to that particular invoice when making the payment.')
qr_code = fields.Boolean(string='Display SEPA QR code')