Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3898 Weergaven

In which case we use the attribute _depends  in odoo classes ? 

Ex: in account/report/account_invoice_report.py

...

_depends = { 'account.invoice': [ 'account_id', 'amount_total_company_signed', 'commercial_partner_id', 'company_id', 'currency_id', 'date_due', 'date_invoice', 'fiscal_position_id', 'journal_id', 'partner_bank_id', 'partner_id', 'payment_term_id', 'residual', 'state', 'type', 'user_id', ],

'account.invoice.line': [ 'account_id', 'invoice_id', 'price_subtotal', 'product_id', 'quantity', 'uom_id', 'account_analytic_id', ], 'product.product': ['product_tmpl_id'], 'product.template': ['categ_id'], 'product.uom': ['category_id', 'factor', 'name', 'uom_type'],

'res.currency.rate': ['currency_id', 'name'], 'res.partner': ['country_id'],

}

...

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
7
apr. 19
15261
3
jan. 19
8870
3
jul. 16
26968
1
apr. 16
3774
1
mrt. 16
3797