Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3893 Widoki

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'],

}

...

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
7
kwi 19
15254
3
sty 19
8866
3
lip 16
26959
1
kwi 16
3774
1
mar 16
3795