Coverage for ingadhoc-account-payment / account_payment_pro / models / res_config_setting.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-09 19:54 +0000

1from odoo import fields, models 

2 

3 

4class ResConfigSettings(models.TransientModel): 

5 _inherit = "res.config.settings" 

6 

7 use_payment_pro = fields.Boolean( 

8 related="company_id.use_payment_pro", 

9 readonly=False, 

10 ) 

11 

12 group_pay_now_customer_invoices = fields.Boolean( 

13 "Allow pay now on customer invoices?", 

14 implied_group="account_payment_pro.group_pay_now_customer_invoices", 

15 ) 

16 group_pay_now_vendor_invoices = fields.Boolean( 

17 "Allow pay now on vendor invoices?", 

18 help="Allow users to choose a payment journal on invoices so that " 

19 "invoice is automatically paid after invoice validation. A payment " 

20 "will be created using choosen journal", 

21 implied_group="account_payment_pro.group_pay_now_vendor_invoices", 

22 )