diff options
| author | eco-odoo <eco@odoo.com> | 2018-05-28 12:35:54 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-07-20 11:59:12 +0200 |
| commit | d1ec3306b8a75f8b961192ef5cf39b6f454f3792 (patch) | |
| tree | 61e675ac67ef45bcce916f95584392d73df953e8 /addons/payment/models | |
| parent | 9744fecd058c707687a743c40fa4748f182a6275 (diff) | |
[ADD] account: onboarding panel for invoicing
Add an onboarding panel for invoicing, it appears above the invoice
list.
After going through the steps the system should be all set to send real invoices.
In the payment module, add a payment acquirer step and add it to the invoice onboarding panel.
task: 60668
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/__init__.py | 1 | ||||
| -rw-r--r-- | addons/payment/models/res_company.py | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/addons/payment/models/__init__.py b/addons/payment/models/__init__.py index 9758f10d9c9..93f5083aca8 100644 --- a/addons/payment/models/__init__.py +++ b/addons/payment/models/__init__.py @@ -5,3 +5,4 @@ from . import account_invoice from . import res_partner from . import account_payment from . import chart_template +from . import res_company diff --git a/addons/payment/models/res_company.py b/addons/payment/models/res_company.py new file mode 100644 index 00000000000..c2b52486563 --- /dev/null +++ b/addons/payment/models/res_company.py @@ -0,0 +1,15 @@ +from odoo import _, api, fields, models + + +class ResCompany(models.Model): + _inherit = 'res.company' + + # Step is marked as done if one payment module is installed or + # `custom` payment has been changed or `skip this step` has been clicked + payment_acquirer_onboarding_done = fields.Boolean('Payment acquirer onboarding done', default=False) + + @api.model + def action_open_payment_onboarding_payment_acquirer(self): + """ Called by onboarding panel above the customer invoice list.""" + action = self.env.ref('payment.action_open_payment_onboarding_payment_acquirer_wizard').read()[0] + return action |
