67
67
],'State', readonly=True, help="Voucher state"),
68
'period_id':fields.many2one('account.period','Period',required=False, help="Period when the accounts entries were done"),
68
'period_id':fields.many2one('account.period','Period',required=True, help="Period when the accounts entries were done"),
69
69
'amount_total_ret':fields.function(_get_amount_total,method=True, digits=(16, 2), readonly=True, string='Withholding Income Amount Total', help="Amount Total of withholding"),
70
70
'amount_total_base':fields.function(_get_amount_total_base,method=True, digits=(16, 2), readonly=True, string='Without Tax Amount Total', help="Total without taxes"),
71
71
'xml_ids':fields.one2many('islr.xml.wh.line','islr_xml_wh_doc','XML Document Lines', readonly=True ,states={'draft':[('readonly',False)]}),