parent
862fd6e846
commit
27728fea1f
6
aeat.py
6
aeat.py
|
@ -851,8 +851,8 @@ class SIIReportLine(ModelSQL, ModelView):
|
||||||
__name__ = 'aeat.sii.report.lines'
|
__name__ = 'aeat.sii.report.lines'
|
||||||
|
|
||||||
report = fields.Many2One(
|
report = fields.Many2One(
|
||||||
'aeat.sii.report', 'Issued Report', ondelete='CASCADE')
|
'aeat.sii.report', 'Issued Report', ondelete='CASCADE', select=True)
|
||||||
invoice = fields.Many2One('account.invoice', 'Invoice',
|
invoice = fields.Many2One('account.invoice', 'Invoice', select=True,
|
||||||
states={
|
states={
|
||||||
'required': Eval('_parent_report', {}).get(
|
'required': Eval('_parent_report', {}).get(
|
||||||
'operation_type') != 'C0',
|
'operation_type') != 'C0',
|
||||||
|
@ -937,7 +937,7 @@ class SIIReportLineTax(ModelSQL, ModelView):
|
||||||
__name__ = 'aeat.sii.report.line.tax'
|
__name__ = 'aeat.sii.report.line.tax'
|
||||||
|
|
||||||
line = fields.Many2One(
|
line = fields.Many2One(
|
||||||
'aeat.sii.report.lines', 'Report Line', ondelete='CASCADE')
|
'aeat.sii.report.lines', 'Report Line', ondelete='CASCADE', select=True)
|
||||||
|
|
||||||
base = fields.Numeric('Base', readonly=True)
|
base = fields.Numeric('Base', readonly=True)
|
||||||
rate = fields.Numeric('Rate', readonly=True)
|
rate = fields.Numeric('Rate', readonly=True)
|
||||||
|
|
Loading…
Reference in New Issue