Browse Source

more fix pyilint

pull/519/head
Florent THOMAS 4 years ago
parent
commit
150a76e9ab
  1. 19
      pos_payment_change/wizards/pos_payment_change_wizard_new_line.py
  2. 18
      pos_payment_change/wizards/pos_payment_change_wizard_old_line.py

19
pos_payment_change/wizards/pos_payment_change_wizard_new_line.py

@ -21,14 +21,17 @@ class PosPaymentChangeWizardLine(models.TransientModel):
) )
company_currency_id = fields.Many2one( company_currency_id = fields.Many2one(
comodel_name='res.currency', store=True,
related='new_journal_id.currency_id',
string="Company Currency", readonly=True,
help='Utility field to express amount currency')
amount = fields.Monetary(string="Amount",
required=True, default=0.0,
currency_field='company_currency_id')
comodel_name='res.currency', store=True,
related='new_journal_id.currency_id',
string="Company Currency", readonly=True,
help='Utility field to express amount currency'
)
amount = fields.Monetary(
string="Amount",
required=True, default=0.0,
currency_field='company_currency_id'
)
@api.model @api.model
def _domain_new_journal_id(self): def _domain_new_journal_id(self):

18
pos_payment_change/wizards/pos_payment_change_wizard_old_line.py

@ -21,11 +21,15 @@ class PosPaymentChangeWizardOldLine(models.TransientModel):
) )
company_currency_id = fields.Many2one( company_currency_id = fields.Many2one(
comodel_name='res.currency', store=True,
related='old_journal_id.currency_id',
string="Company Currency", readonly=True,
help='Utility field to express amount currency')
comodel_name='res.currency', store=True,
related='old_journal_id.currency_id',
string="Company Currency", readonly=True,
help='Utility field to express amount currency'
)
amount = fields.Monetary(string="Amount", required=True,
readonly=True, default=0.0,
currency_field='company_currency_id')
amount = fields.Monetary(
string="Amount",
required=True,
readonly=True, default=0.0,
currency_field='company_currency_id'
)
Loading…
Cancel
Save