Tryton - Issues

 

Issue8467

Title Allow cost_price as price_list formula
Priority feature Status resolved
Superseder Nosy List ced, pokoli, reviewbot, roundup-bot
Type feature request Components product_price_list
Assigned To pokoli Keywords review
Reviews 259771002
View: 259771002

Created on 2019-07-02.10:01:39 by pokoli, last changed by roundup-bot.

Messages
New changeset e1d438b603cd by Sergi Almacellas Abellana in branch 'default':
Allow using the product cost price in the price list formula
https://hg.tryton.org/tryton-env/rev/e1d438b603cd
New changeset 98034d452d8e by Sergi Almacellas Abellana in branch 'default':
Set company on sale price context to support product's cost price in formula
https://hg.tryton.org/modules/sale_price_list/rev/98034d452d8e
New changeset b654d54f3a52 by Sergi Almacellas Abellana in branch 'default':
Allow using the product cost price in the price list formula
https://hg.tryton.org/modules/product_price_list/rev/b654d54f3a52
review259771002 updated at https://codereview.tryton.org/259771002/#ps270081002
review259771002 updated at https://codereview.tryton.org/259771002/#ps283791002
review259771002 updated at https://codereview.tryton.org/259771002/#ps255671002
review259771002 updated at https://codereview.tryton.org/259771002/#ps283661002
msg50499 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2019-07-04.13:04:23
On 2/7/19 10:21, C├ędric Krier wrote:
> For me, the difficulty is to support correctly and explicitly the MultiValue pattern.

Is enought to use the price_list pattern as MultiValue pattern? 

I've implemented this on last patch set and it works for the simple cases because the unknow values are filtered out of the multivalue pattern. See:

http://hg.tryton.org/trytond/file/ade594782410/trytond/model/multivalue.py#l44
New review259771002 at https://codereview.tryton.org/259771002/#ps261771002
msg50490 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-07-02.10:21:08
For me, the difficulty is to support correctly and explicitly the MultiValue pattern.
msg50489 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2019-07-02.10:01:39
This is specially usefull for resellers who normally compute the price_list of it's products by applying a marging on the cost price.
History
Date User Action Args
2019-08-19 18:47:20roundup-botsetmessages: + msg51356
2019-08-19 18:47:16roundup-botsetmessages: + msg51355
2019-08-19 18:47:11roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg51354
2019-08-08 10:43:11reviewbotsetmessages: + msg51118
2019-07-23 09:58:38reviewbotsetmessages: + msg50804
2019-07-15 15:10:29reviewbotsetmessages: + msg50663
2019-07-04 13:22:43reviewbotsetmessages: + msg50500
2019-07-04 13:04:38pokolisetreviews: 59771002, 259771002 -> 259771002
2019-07-04 13:04:24pokolisetmessages: + msg50499
2019-07-02 10:21:27reviewbotsetnosy: + reviewbot
messages: + msg50491

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