diff options
| author | fda-odoo <fda@odoo.com> | 2018-09-26 16:39:19 +0200 |
|---|---|---|
| committer | Florian Daloze <31888904+fda-odoo@users.noreply.github.com> | 2018-09-26 18:31:38 +0200 |
| commit | c49037dee73ab8dcf0a2baf259a47e20d9a23b3f (patch) | |
| tree | d62de3f320c5d9799bac724f4cd11672eca83724 | |
| parent | 692b557284572b7117846205a7739e2507cd3c0c (diff) | |
[IMP] account: add option to install account_invoice_extract
As account_invoice_extract is now in auto_install=True, we should show a default option in account to install or uninstall the module.
| -rw-r--r-- | addons/account/models/res_config_settings.py | 1 | ||||
| -rw-r--r-- | addons/account/views/res_config_settings_views.xml | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index dbe7db018f9..b7ebec88286 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -75,6 +75,7 @@ class ResConfigSettings(models.TransientModel): module_product_margin = fields.Boolean(string="Allow Product Margin") module_l10n_eu_service = fields.Boolean(string="EU Digital Goods VAT") module_account_taxcloud = fields.Boolean(string="Account TaxCloud") + module_account_invoice_extract = fields.Boolean(string="Automate Bill Processing") tax_exigibility = fields.Boolean(string='Cash Basis', related='company_id.tax_exigibility') tax_cash_basis_journal_id = fields.Many2one('account.journal', related='company_id.tax_cash_basis_journal_id', string="Tax Cash Basis Journal") invoice_reference_type = fields.Selection(string='Communication', diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index 94dc7f0436d..e3ffbdc699a 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -560,6 +560,25 @@ </div> </div> </div> + <h2>Autocomplete Vendor Bills (OCR + AI)</h2> + <div class="row mt16 o_settings_container" id="account_ocr_settings"> + <div class="col-12 col-lg-6 o_setting_box"> + <div class="o_setting_left_pane"> + <field name="module_account_invoice_extract" widget="upgrade_boolean"/> + </div> + <div class="o_setting_right_pane"> + <label for="module_account_invoice_extract"/> + <div class="text-muted"> + When receiving an email with a bill, or uploading scanned bills, Odoo will parse them (OCR) and auto-complete (AI) Draft Bills to validate. + </div> + <div id="msg_invoice_extract" class="content-group" attrs="{'invisible': [('module_account_invoice_extract', '=', False)]}"> + <div class="text-warning mt16 mb4"> + Save this page and come back here to set up the feature. + </div> + </div> + </div> + </div> + </div> </div> </xpath> </field> |
