Community mailing list archives

community@mail.odoo.com

Re: Automatic Sale price

by
SISalp
- 10/31/2016 19:21:29
not checked on v9, V10, but it is historically done by price list

2016-10-31 22:27 GMT+01:00 Khaled Hamed <khaled.hamed@grandtk.com>:
Here's a full example steps:

- From Settings -> Technical -> Automation -> Automated Actions, Create new one
- On Conditions tab -> When to Run: On Create & Update
- Related Document Model: Product Template
- On Actions tab -> Server Action to Run -> Add Item
-  Base Model: Product Template, Action To Do: Execute Python Code
- On Python Code: type the following: 


list_price = object.standard_price * 1.33 object.write({'list_price': list_price})


The Automated Action Name & Server Action Name is up to you.


Best regards...

Khaled Hamed Mostafa



On Mon, Oct 31, 2016 at 4:19 AM, Khaled Hamed <khaled.hamed@grandtk.com> wrote:
Hello,

The fastest way is to use and automated server action On Create & Update Product Template where action is python code to calculate list_price based on standard_price.

For example:

list_price = object.standard_price * 1.33 object.write({'list_price': list_price})



Best regards...

Khaled Hamed Mostafa



On Mon, Oct 31, 2016 at 2:46 AM, Michel Memeteau - EKIMIA <mm@ekimia.fr> wrote:
Hi , 

that sounds surprising but I cannot find a module or an option to compute automatically a sale price based on a global margin setting.


Like sale prixe = cost price x margin rate ( 1.33) 

Do you use some module to achieve this ?

Thanks

<------------------------------------------------------------------------------------------------------------------>
Michel Memeteau  - Directeur.


Notre Boutique Ordinateurs GNU/Linux : http://shop.ekimia.fr
280 avenue de la malvesine 13720 La Bouilladisse - France.
Fixe :  +33 (0) 972308334   Mobile : +33(0) 624808051
<------------------------------------------------------------------------------------------------------------------> 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Dominique Chabord - SISalp
Logiciel libre pour l'entreprise Tryton et open-source Odoo, OpenERP
18 avenue Beauregard 74960 Cran Gevrier
145A rue Alexandre Borrely 83000 Toulon
tel(repondeur) +33(0)950274960 fax +33(0)955274960 mob +33(0)622616438
http://sisalp.fr
http://openerp-online.fr
https://twitter.com/SISalp l'actualité de vos services en temps réel.