How should landed costs update inventory accounting under Anglo-Saxon accounting in Tryton 8.0?

Hi everyone,

We are evaluating Tryton 8.0 for a manufacturing company and are trying to understand the expected accounting workflow for landed costs when using Anglo-Saxon accounting.

Our installed modules include:

  • account_stock_anglo_saxon
  • account_stock_landed_cost
  • account_stock_landed_cost_weight
  • account_invoice_stock
  • purchase_shipment_cost
  • stock_shipment_cost

Our workflow is:

  1. Create a Purchase Order.
  2. Receive the supplier shipment.
  3. Post the supplier invoice for the goods.
  4. Create a supplier invoice for freight/clearing charges using a Service product with Landed Cost = True.
  5. Create an Account Landed Cost, link the shipment and the invoice line, and post it.
  6. Run Recompute Cost Price on the received product.

The result is:

  • :white_check_mark: The stock move unit price is updated.
  • :white_check_mark: The product cost price is updated.
  • :cross_mark: No accounting entry is created to capitalize the landed cost into inventory.

For example, if the landed cost is KSh 100,000, we expected an inventory adjustment similar to:


Dr Inventory (Raw Materials)                100,000
Cr Transport & Logistics (or another counterpart)   100,000

Instead, only the product cost is updated and no additional journal entry is generated.

While researching this, we found the following historical discussions:

  • “How to add amount to account_stock if we add a landed cost to a supplier shipment?”
  • “Conflict between wizards wizard_recompute_cost_price and wizard_update_cost_price

From those discussions, it appears there was an intention to automatically create the inventory accounting adjustment during the cost price update, and later the stock account structure was simplified.

However, when testing Tryton 8.0 and reviewing the source code, we could not find any accounting move being created by either the landed cost posting or the Recompute Cost Price wizard.

Our questions are:

  1. Is the current behaviour expected in Tryton 8?
  2. Is another module or configuration required to generate the inventory accounting adjustment?
  3. Or is the accounting adjustment after landed cost recomputation still not implemented?

We would appreciate any guidance on the recommended approach.

Thank you.

Hi everyone,

I am currently testing Tryton 8.0 with the following modules enabled:

  • account_stock_anglo_saxon
  • account_stock_landed_cost
  • account_stock_landed_cost_weight
  • account_invoice_stock
  • purchase_shipment_cost
  • stock_shipment_cost

Our workflow is:

  1. Create Purchase Order.
  2. Receive the supplier shipment.
  3. Post the supplier invoice for the goods.
  4. Create a supplier invoice for freight/clearing charges using a Service product with Landed Cost = True.
  5. Create an Account Landed Cost, link the shipment and the invoice line, and post it.
  6. Run Recompute Cost Price.

The behaviour we observe is:

  • The landed cost is allocated correctly.
  • The stock move unit price is updated.
  • The product cost price is updated.

However, no inventory accounting entry is created.

While investigating, we found the previous discussions:

  • How to add amount to account_stock if we add a landed cost to a supplier shipment?
  • Conflict between wizards “wizard_recompute_cost_price” and “wizard_update_cost_price”

Those discussions suggested that the inventory value adjustment could be posted automatically during the cost price update, and later the stock account structure was simplified.

We also reviewed the current Tryton 8 source code and could not find any accounting move being created by either:

  • account_stock_landed_cost
  • Recompute Cost Price

My question is:

After landed costs have increased the product cost price, what is the expected mechanism that updates the Inventory (Account Stock) value in the general ledger?

Is this:

  1. Expected to happen automatically?
  2. Expected to be done manually?
  3. Implemented in another module?
  4. Or is this functionality still not implemented?

Thank you.

Does your fiscal year have an account stock method defined?

Yes account_stock_anglo_saxon

I’m not sure you understood my question.
The fiscal year record has a field “Account Stock Method” which is empty by default. But to have stock accounting activated for the current fiscal year, this field must be set to one of the options. Is it?

It is in modules/account_stock_continental/product.py when update_cost_price is called.