Repository
OCA/l10n-romania · module folder · Try on Runboat
Module version
1.0.0
Category
Localization
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/l10n-romania
Last tracking update
2026-09-18 17:32:19
Authors
Odoo Community Association (OCA), NextERP Romania, Dakai Soft SRL
Maintainers
Odoo Community Association (OCA), NextERP Romania, Dakai Soft SRL
Committers
Mihai Fekete, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_ro_stock_account_retail_price_difference
Description
# Romania - Retail Landed Cost (Marfa in Magazin)

Keeps account 371 at the shelf price when a landed cost raises the cost
of goods that are sitting in a retail warehouse.

Goods in a shop are carried at the price on the shelf label. A landed
cost - transport, customs, a purchase price difference - debits 371 with
the extra cost, which for a shop is wrong: the shelf price has not
moved, so the value on 371 must not move either. What changes is how
that value splits: the cost goes up and the markup goes down by the same
amount.

This module posts the compensating entry, `Dr 378 / Cr 371`, and records
it in the markup ledger, so the next sale releases the markup that is
really left rather than the one loaded at reception.

Price differences from vendor bills are handled by the same mechanism:
in this localization a price difference *is* a landed cost, of type
`price_diff`.

If the extra cost would push the markup below zero - the goods now cost
more than they are priced at - the landed cost is refused, naming the
product and the shelf price that would make it work. A shop that
genuinely sells below cost ticks *Allow Selling Below Cost* on the
warehouse, the same flag the reception path honours.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_stock_landed_cost_retail_form stock.landed.cost.form.l10n.ro.retail 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 (2)

New fields (1)
  • landed_cost_id Many2one → stock.landed.cost
    index='btree_not_null' ondelete='set null' string='Landed Cost' args: 'stock.landed.cost'
Public methods (0)

No public methods.

New fields (1)
  • l10n_ro_retail_markup_line_ids One2many → l10n.ro.retail.markup.line
    readonly=True string='Retail Markup Ledger' args: 'l10n.ro.retail.markup.line', 'landed_cost_id'
Public methods (1)
  • button_validate(self)