Tryton - Issues

 

Issue7605

Title mandatory analytic and sale_shipment_cost
Priority bug Status chatting
Superseder Nosy List ced, jcm
Type behavior Components analytic_account, analytic_sale, sale_shipment_cost
Assigned To Keywords
Reviews

Created on 2018-08-03.09:25:35 by jcm, last changed by ced.

Messages
msg43068 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-08-26.12:32:39
Since issue5900, I think we should remove the mandatory flag on analytic axis. Or at least it should not be a strict constraint (maybe a warning).
msg42624 (view) Author: [hidden] (jcm) Date: 2018-08-03.09:25:35
With a mandatory analytic root, I cannot use sale_shipment_cost to add calculated shipment price with carrier_weight on sale.

I tested on demo4.8 to reproduce it.
Activate analytic_account, analytic_invoice, analytic_sale, carrier, carrier_weight, sale_shipment_cost.
Create Carrier (product, party) and CarrierSelection.
Configure Sale with SaleShipmentCostMethod OnOrder.
Create a simple analytic with root (mandatory) and two children, product and carrier.
Make a new sale, add a line with a product, choose analytic ‘product’ on line.
Message is « The field "Account" on "Analytic Account Entry" is required. » when trying to change Draft Sale to Quote.

IMHO it’s the carrier sale line added automatically that has no analytic.
I tried to add an AnalyticRule to add it automatically from Account, but this doesn’t work. Probably there’s no write to the journal at the time the saleline is created.
History
Date User Action Args
2018-08-26 12:32:39cedsetstatus: unread -> chatting
nosy: + ced
messages: + msg43068
2018-08-04 00:56:23cedsetcomponent: - analytic_invoice, carrier, carrier_weight
2018-08-03 09:25:35jcmcreate

Showing 10 items. Show all history (warning: this could be VERY long)