Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Bulgaria - Report ledger
Entity: account.move
Compute Method: _compute_l10n_bg_document_number
| Inputs | Method | Outputs |
|---|---|---|
|
+ for move in self: + if move.state == 'draft': + move.l10n_bg_document_number = "" + elif move.is_sale_document(include_receipts=True): + move.l10n_bg_document_number = move.name + else: + move.l10n_bg_document_number = move.ref |
|
