Skip to Content

Contributors

Re: Enable Price List using code

Thank you Maxime,

I gave a try to your approach and while it works for some others config parameters, this one stays in the dark and its value doesn't change.
Something odd actually is I can access the price lists even if the boolean is not set. Seems to drive only views. It is good enough for my use case.

Thank you again Max,
Jordi

Le mar. 28 janv. 2020 à 16:37, Maxime Chambreuil <mchambreuil@opensourceintegrators.com> a écrit :
You can do something like this:

MAXIME CHAMBREUIL
PROJECT MANAGER/CONSULTANT
O: 1.855.877.2377 EXT. 710
M: 602.427.5632
E: MChambreuil@OpenSourcelntegrators.com
P.O. BOX 940, HIGLEY, AZ 85236


On Tue, Jan 28, 2020 at 3:26 PM Jordi Riera <jordi.riera@numigi.com> wrote:
Hello List,

I struggle with a simple task. Well something that I thought would be simple.
I would like to enable the Price Lists using xml or python. So I can test my data that rely on.

I tried using get_values() in res.config.parameter, an XML record. Nothing stick.

Would you have advice on how to achieve my quest?

Thank you all,
Jordi

--
Jordi Riera - VP Technique
NUMIGI SOLUTIONS INC.
(514) 317-7944

Longueuil, Québec, Canada

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--
Jordi Riera - VP Technique
NUMIGI SOLUTIONS INC.
(514) 317-7944

Longueuil, Québec, Canada


by Jordi Riera - 03:41 - 31 Jan 2020

Reference

  • Enable Price List using code
    Hello List,

    I struggle with a simple task. Well something that I thought would be simple.
    I would like to enable the Price Lists using xml or python. So I can test my data that rely on.

    I tried using get_values() in res.config.parameter, an XML record. Nothing stick.

    Would you have advice on how to achieve my quest?

    Thank you all,
    Jordi

    --
    Jordi Riera - VP Technique
    NUMIGI SOLUTIONS INC.
    (514) 317-7944

    Longueuil, Québec, Canada


    by Jordi Riera - 10:25 - 28 Jan 2020