Add compatibility with aeat_340

This commit is contained in:
Guillem Barba 2015-12-18 13:57:34 +01:00
parent 6ceb01d8a2
commit 0bb6fa874e
2 changed files with 4 additions and 1 deletions

View File

@ -182,9 +182,10 @@ class Invoice:
class InvoiceLine:
__name__ = 'account.invoice.line'
# Excluce aeat340_book_key to force to calculate it on create
_intercompany_excluded_fields = ['id', 'account', 'taxes', 'origin',
'party', 'invoice_type', 'company', 'create_date', 'create_uid',
'write_date', 'write_uid', 'intercompany_account']
'write_date', 'write_uid', 'intercompany_account', 'aeat340_book_key']
intercompany_invoice = fields.Function(fields.Boolean(
'Intercompany Invoice'),

View File

@ -3,5 +3,7 @@ version=3.4.0
depends:
account_invoice
company_account_sync
extras_depend:
aeat_340
xml:
invoice.xml