Community mailing list archives

community@mail.odoo.com

Re: Automatic Sale price

by
AVANZOSC, S.L., Ana Juaristi Olalde
- 11/01/2016 18:44:47

Pricelist is included on odoo core. You don't need any aditional module to use them.


El 1 nov. 2016 1:02, "Michel Memeteau - EKIMIA" <mm@ekimia.fr> escribió:
Thanks khaled for this helpful tip on automation. Will give it a try.

Dominique and ana : I'm on V8 and cannot find a "pricelist" feature nor module , am I missing something in configuration menu maybe ? 

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
<------------------------------------------------------------------------------------------------------------------> 

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


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