diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index ee91af9710c..28362a46223 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -43,6 +43,10 @@ class ResConfigSettings(models.TransientModel): "Show line subtotals with taxes (B2C)", implied_group='account.group_show_line_subtotals_tax_included', group='base.group_portal,base.group_user,base.group_public') + group_show_sale_receipts = fields.Boolean(string='Sale Receipt', + implied_group='account.group_sale_receipts') + group_show_purchase_receipts = fields.Boolean(string='Purchase Receipt', + implied_group='account.group_purchase_receipts') show_line_subtotals_tax_selection = fields.Selection([ ('tax_excluded', 'Tax-Excluded'), ('tax_included', 'Tax-Included')], string="Line Subtotals Tax Display", diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index 4fa0ddff157..3f03405a485 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -66,6 +66,14 @@ + + Sale Receipt + + + + Purchase Receipt + + account.analytic.line.billing.user diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 47321ee5ad0..46703a76814 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -1436,6 +1436,7 @@ if records: id="menu_action_move_out_receipt_type" action="action_move_out_receipt_type" parent="account.menu_finance_receivables" + groups="account.group_sale_receipts" sequence="1"/> + + + + + + + + Active to create sale receipt + + + Customer Payments @@ -372,6 +383,17 @@ + + + + + + + + Active to create purchase receipt + + + Vendor Payments