On 2017-02-19 06:00, Vincent Bastos wrote:
> For this module there is a function which automatically applies a charge
> based on certain conditions. So I guess the right way of implementing this
> is actually to create a product record in XML in the module already.

I do not recommend to create product (or any non standardized data) via
XML because this removes the possibility to the user to customize it.

I guess you have a model that defines the condition to apply the charge
so on this model you can link to a product. There you could have any
sort of validation to ensure the product is correctly configured.

I suggest you to look at the module sale_shipment_cost which does
probably something similar to yours.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20170218234055.GD24040%40tetsuo.

Reply via email to