Eval company or -1 in context m2o fields #163427
This commit is contained in:
parent
3854debb39
commit
ec77bdd7fe
|
@ -81,7 +81,7 @@ class PrintGeneralLedgerStart(ModelView):
|
|||
help='If unchecked print all tree accounts from 1 to all digits')
|
||||
parties = fields.Many2Many('party.party', None, None, 'Parties',
|
||||
context={
|
||||
'company': Eval('company'),
|
||||
'company': Eval('company', -1),
|
||||
},
|
||||
depends=['company'])
|
||||
output_format = fields.Selection([
|
||||
|
|
|
@ -49,7 +49,7 @@ class PrintTaxesByInvoiceAndPeriodStart(ModelView):
|
|||
totals_only = fields.Boolean('Totals Only')
|
||||
parties = fields.Many2Many('party.party', None, None, 'Parties',
|
||||
context={
|
||||
'company': Eval('company'),
|
||||
'company': Eval('company', -1),
|
||||
},
|
||||
depends=['company'])
|
||||
output_format = fields.Selection([
|
||||
|
|
Loading…
Reference in New Issue