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