Repository
OCA/l10n-romania · module folder · Try on Runboat
Module version
0.3.0
Category
Localization
Folder size
0.79 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-romania
Last tracking update
2026-08-07 09:06:35
Authors
Odoo Community Association (OCA), NextERP Romania, Terrabit
Maintainers
Odoo Community Association (OCA), NextERP Romania, Terrabit
Committers
GitHub, Mihai Fekete, Weblate, OCA-git-bot, oca-ci, stananatanaela, Adrian Vacaru, Flavia0320
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
DVI - declaraţie vamala de import

Se face legatura dintre factura de achizitie si DVI (landed cost)

Se genereaza automat un DVI cu doua linii si cu TVA.

Contul 447 trebuie sa fie un cont de reconciliere pentru a se putea
inchide prin banca

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
view_account_dvi_form DVI l10n.ro.account.dvi form New
view_account_dvi_tree l10n.ro.account.dvi.tree l10n.ro.account.dvi list New
view_move_form account.move.form account.move form Inherits account.view_move_form
view_stock_landed_cost_form stock.landed.cost.form stock.landed.cost form Inherits l10n_ro_stock_account_landed_cost.view_stock_landed_cost_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (1)
  • l10n_ro_dvi_ids Many2many → stock.landed.cost
    compute='_compute_l10n_ro_dvi_ids' help="DVI's linked to this invoice" string="Romania - DVI's" args: 'stock.landed.cost'
Public methods (1)
  • action_view_dvis(self)

New fields (22)
  • company_id Many2one → res.company
    default=<expr> readonly=True required=True args: 'res.company'
  • currency_id Many2one
    help='Utility field to express amount currency' readonly=True related='company_id.currency_id' store=True
  • customs_commission_product_id Many2one → product.product
    help='Product type service with l10n_ro_custom_commission checed (in purchase tab). Journal entry for commission will be with this product' required=True args: 'product.product'
  • customs_commission_value Monetary
    help='taken from dvi if exists'
  • customs_duty_product_id Many2one → product.product
    help='A product type service with l10n_ro_custom_duty checked (purchase tab). Journal entry for duty will be with this product & default vat for custom duty and invoice - to find it in declaration based on tags' required=True args: 'product.product'
  • customs_duty_tax_value Monetary
    compute='_compute_total_tax_value' help='readonly computed tax from custom_duty_value' readonly=True
  • customs_duty_value Monetary
    help='This is a value from received dvi'
  • date Date
    required=True
  • invoice_base_value Monetary
    compute='_compute_amount' help='Invoices value without taxes'
  • invoice_ids Many2many → account.move
    domain=[('move_type', 'in', ['in_invoice', 'in_refund'])] required=True string='Invoices' args: 'account.move'
  • invoice_tax_value Monetary
    compute='_compute_amount' help='default is computed as tax_id from product; is not recomputed based on selected vat'
  • journal_id Many2one → account.journal
    domain="[('type', '=', 'general'), ('company_id', '=', company_id)]" required=True string='Journal' args: 'account.journal'
  • landed_cost_ids One2many → stock.landed.cost
    readonly=True args: 'stock.landed.cost', 'l10n_ro_account_dvi_id'
  • line_ids One2many → l10n.ro.account.dvi.line
    copy=False string='DVI Lines' args: 'l10n.ro.account.dvi.line', 'dvi_id'
  • name Char
    required=True
  • state Selection
    copy=False default='draft' index=True readonly=True selection=[('draft', 'Draft'), ('posted', 'Posted'), ('reversed', 'Reversed')] string='Status' tracking=True
  • tax_id Many2one → account.tax
    domain="[('type_tax_use', '=', 'purchase'), ('company_id', '=', company_id)]" help='Is the vat that is paid in custom for products. default is taken from custom duty tax. will put this vat tag in journal entry to find it in reports' required=True args: 'account.tax'
  • total_base_tax_value Monetary
    compute='_compute_total_tax_value' help='Is readonly sum of product tax and custom tax.This must be the tax value that you have on dvi' readonly=True
  • total_tax_value Monetary
    compute='_compute_total_tax_value' help='Is readonly sum of product tax and custom tax.This must be the tax value that you have on dvi' readonly=True
  • vat_price_difference Monetary
    help='VAT price difference'
  • vat_price_difference_move_id Many2one → account.move
    help='Move for vat price difference' readonly=True args: 'account.move'
  • vat_price_difference_product_id Many2one → product.product
    help='Product for vat price difference' args: 'product.product'
Public methods (10)
  • action_view_landed_costs(self)
  • button_post(self)
  • button_reverse(self)
  • create(self, vals_list)
    @api.model_create_multi
  • create_account_move_dvi(self)
  • default_get(self, fields_list)
    @api.model
  • prepare_dvi_landed_cost_lines(self, product, value, accounts_data)
  • prepare_dvi_landed_cost_vals(self)
  • prepare_dvi_landed_cost_values(self)
  • write(self, vals)

New fields (15)
  • base_amount Float
    compute='_compute_base_vat_amount'
  • company_id Many2one → res.company
    related='dvi_id.company_id' store=True string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    related='dvi_id.currency_id' args: 'res.currency'
  • dvi_id Many2one → l10n.ro.account.dvi
    index=True ondelete='cascade' required=True string='DVI Ref' args: 'l10n.ro.account.dvi'
  • invoice_id Many2one → account.move
    check_company=True copy=False index=True readonly=True string='DVI Invoice' args: 'account.move'
  • invoice_line_id Many2one → account.move.line
    check_company=True copy=False readonly=True args: 'account.move.line', 'Invoice Line'
  • line_qty Float
    default=1.0 digits='Product Unit of Measure' help='The quantity declared in the DVI.' string='DVI Quantity'
  • name Char
    readonly=True related='invoice_line_id.name'
  • price_subtotal Monetary
    readonly=True related='invoice_line_id.balance'
  • price_unit Float
    readonly=True related='invoice_line_id.price_unit'
  • product_id Many2one
    readonly=True related='invoice_line_id.product_id'
  • product_uom_id Many2one
    readonly=True related='invoice_line_id.product_uom_id'
  • qty Float
    readonly=True related='invoice_line_id.quantity'
  • tax_id Many2one → account.tax
    related='dvi_id.tax_id' args: 'account.tax'
  • vat_amount Float
    compute='_compute_base_vat_amount' string='VAT Amount'
Public methods (0)

No public methods.

New fields (1)
  • l10n_ro_property_vat_price_difference_product_id Many2one → product.product
    domain="[('type', '=', 'service')]" help='This product will be used in create an accounting note for the difference between customs duty and bill' string='Romania - Vat Price Difference Product' args: 'product.product'
Public methods (0)

No public methods.

New fields (6)
  • l10n_ro_account_dvi_id Many2one → l10n.ro.account.dvi
    string='Romania - DVI' args: 'l10n.ro.account.dvi'
  • l10n_ro_base_tax_value Float
    copy=False help='Base VAT amount, calculated from invoice base amount, customs and commission.' args: 'Romania - Base VAT amount'
  • l10n_ro_cost_type Selection
    ondelete={'dvi': 'set default'} selection_add=[('dvi', 'DVI')]
  • l10n_ro_dvi_bill_ids Many2many → account.move
    readonly=True relation='account_move_stock_landed_cost_rel' string='Romania - DVI Invoices' args: 'account.move'
  • l10n_ro_tax_id Many2one → account.tax
    copy=False help='VAT tax for products and customs cost' string='Romania - DVI Tax' args: 'account.tax'
  • l10n_ro_tax_value Float
    copy=False help='VAT amount, calculated from invoice base amount and customs.' args: 'Romania - VAT amount paid at customs'
Public methods (1)
  • button_validate(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…