On 24/09/13 15:29 +0200, Nicolas Évrard wrote:
> Hello,
> 
> I have started a new blueprint that define how we could handle
> different rules wrt the drop shipment process.
> 
>     https://code.google.com/p/tryton/wiki/DropShipmentRules
> 
> There is a pending question related to the place where the
> drop_shipment_rule object should be stored.
> 
> Initially I though about the warehouse because I find it logical that
> different warehouses might use different policies.
> 
> Cédric has raised concerns about this choice.
> 
> Another option that might be logical would be to add a property in the
> sale.config object in order to define company-wide default for this
> value.

I think there is no need to get a Model with a one2many because such
rules apply on all the company.
If different behavior is expected to be based on location then a new
matching field for location would be added to the rules.

The question could be more is a rule matching pattern the right solution
for this feature.
An other possible solution will be to just improve
sale_supply_drop_shipment to allow a computation of the property
"drop_shipment" on the ProductSupplier instead of fixed value.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpbu4F6ekMve.pgp
Description: PGP signature

Reply via email to