Compare commits
No commits in common. "19.0" and "main" have entirely different histories.
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# Categories can be used to filter modules in modules listing
|
# Categories can be used to filter modules in modules listing
|
||||||
'category': 'Point of Sale',
|
'category': 'Point of Sale',
|
||||||
'version': '19.0.1.0.0',
|
'version': '17.0.1.0.0',
|
||||||
|
|
||||||
# any module necessary for this one to work correctly
|
# any module necessary for this one to work correctly
|
||||||
'depends': ['point_of_sale', 'pos_discount'],
|
'depends': ['point_of_sale', 'pos_discount'],
|
||||||
|
|||||||
@ -8,13 +8,13 @@ class PosPaymentMethod(models.Model):
|
|||||||
income_account_id = fields.Many2one(
|
income_account_id = fields.Many2one(
|
||||||
'account.account',
|
'account.account',
|
||||||
string='Income Account',
|
string='Income Account',
|
||||||
domain=[('active', '=', True)],
|
domain=[('deprecated', '=', False)],
|
||||||
help='Account used for income lines when splitting by payment method. '
|
help='Account used for income lines when splitting by payment method. '
|
||||||
'If empty, the default income account from the product will be used.')
|
'If empty, the default income account from the product will be used.')
|
||||||
|
|
||||||
discount_account_id = fields.Many2one(
|
discount_account_id = fields.Many2one(
|
||||||
'account.account',
|
'account.account',
|
||||||
string='Discount Account',
|
string='Discount Account',
|
||||||
domain=[('active', '=', True)],
|
domain=[('deprecated', '=', False)],
|
||||||
help='Account used for discount product lines when splitting by payment method. '
|
help='Account used for discount product lines when splitting by payment method. '
|
||||||
'If empty, the default discount account from the product will be used.')
|
'If empty, the default discount account from the product will be used.')
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<field name="inherit_id" ref="point_of_sale.pos_payment_method_view_form"/>
|
<field name="inherit_id" ref="point_of_sale.pos_payment_method_view_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//group[@name='Payment methods']/group" position="inside">
|
<xpath expr="//group[@name='Payment methods']/group" position="inside">
|
||||||
<field name="income_account_id" domain="[('active', '=', True)]"/>
|
<field name="income_account_id" domain="[('deprecated', '=', False)]"/>
|
||||||
<field name="discount_account_id" domain="[('active', '=', True)]"/>
|
<field name="discount_account_id" domain="[('deprecated', '=', False)]"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user