Re: [tryton-dev] How to add to the configuration wizard when a new module is installed

2017-03-03 Thread Sergi Almacellas Abellana

El 03/03/17 a les 09:38, Vincent Bastos ha escrit:



On Fri, Mar 3, 2017 at 6:23 PM, Sergi Almacellas Abellana
> wrote:

El 03/03/17 a les 08:42, Vincent Bastos ha escrit:



On Saturday, February 18, 2017 at 10:20:07 PM UTC+10, Cédric
Krier wrote:

On 2017-02-17 22:42, Vincent Bastos wrote:
> Hi,
>
> I am unable to figure out how modules are able to "append"
to the
> configuration wizard when a new module is installed.
>
> I have created a configuration.py file and
configuration.xml file
with a
> form, but this does not come up when I install my module.
>
> I thought that Tryton automatically added configuration
files to the
> wizard, but I was unable to find this in the code.

Explicit is better than implicit.
You have to create an entry in ir.module.config_wizard.item


I suppose I also have to create Configuration class that extends
a Wizard?


No you have to create a record in ir.module.config_wizard.item that
references the wizard you want to call when your module is
installed. You can have a look at the company module as reference:

http://hg.tryton.org/modules/company/file/052e36889d49/company.xml#l167


Hope it helps.


Yes, I saw this. But this has a reference to the record above it:


Configure Company
company.company.config


Which references the wizard class company.company.config - so I do have
to create this configuration class for my module no?



Yes, you have to register the new wizard on the database if you create one.

Note: You can use launch an existing wizard by using an existing xml_id 
on the ir.module.config_wizard.item but I can not imagine any use case.




--
*Vincent Bastos*
*Lava Lab Software*

--
You received this message because you are subscribed to the Google
Groups "tryton-dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton-dev/CACLX58AGinYsJQNQSXT9tVFx4X2xUy6hi1z7qNy34kRgrR3wTA%40mail.gmail.com
.



--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/0c448b9c-1941-e7e9-04b5-faa7fc63d87d%40koolpi.com.


Re: [tryton-dev] How to add to the configuration wizard when a new module is installed

2017-03-03 Thread Vincent Bastos
On Fri, Mar 3, 2017 at 6:23 PM, Sergi Almacellas Abellana 
wrote:

> El 03/03/17 a les 08:42, Vincent Bastos ha escrit:
>
>>
>>
>> On Saturday, February 18, 2017 at 10:20:07 PM UTC+10, Cédric Krier wrote:
>>
>> On 2017-02-17 22:42, Vincent Bastos wrote:
>> > Hi,
>> >
>> > I am unable to figure out how modules are able to "append" to the
>> > configuration wizard when a new module is installed.
>> >
>> > I have created a configuration.py file and configuration.xml file
>> with a
>> > form, but this does not come up when I install my module.
>> >
>> > I thought that Tryton automatically added configuration files to the
>> > wizard, but I was unable to find this in the code.
>>
>> Explicit is better than implicit.
>> You have to create an entry in ir.module.config_wizard.item
>>
>>
>> I suppose I also have to create Configuration class that extends a Wizard?
>>
>
> No you have to create a record in ir.module.config_wizard.item that
> references the wizard you want to call when your module is installed. You
> can have a look at the company module as reference:
>
> http://hg.tryton.org/modules/company/file/052e36889d49/company.xml#l167
>
> Hope it helps.
>

Yes, I saw this. But this has a reference to the record above it:


Configure Company
company.company.config


Which references the wizard class company.company.config - so I do have to
create this configuration class for my module no?

-- 
*Vincent Bastos*
*Lava Lab Software*

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/CACLX58AGinYsJQNQSXT9tVFx4X2xUy6hi1z7qNy34kRgrR3wTA%40mail.gmail.com.


Re: [tryton-dev] How to add to the configuration wizard when a new module is installed

2017-03-03 Thread Sergi Almacellas Abellana

El 03/03/17 a les 08:42, Vincent Bastos ha escrit:



On Saturday, February 18, 2017 at 10:20:07 PM UTC+10, Cédric Krier wrote:

On 2017-02-17 22:42, Vincent Bastos wrote:
> Hi,
>
> I am unable to figure out how modules are able to "append" to the
> configuration wizard when a new module is installed.
>
> I have created a configuration.py file and configuration.xml file
with a
> form, but this does not come up when I install my module.
>
> I thought that Tryton automatically added configuration files to the
> wizard, but I was unable to find this in the code.

Explicit is better than implicit.
You have to create an entry in ir.module.config_wizard.item


I suppose I also have to create Configuration class that extends a Wizard?


No you have to create a record in ir.module.config_wizard.item that 
references the wizard you want to call when your module is installed. 
You can have a look at the company module as reference:


http://hg.tryton.org/modules/company/file/052e36889d49/company.xml#l167

Hope it helps.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/57dacdce-7921-e68a-6450-c1be71476f97%40koolpi.com.


Re: [tryton-dev] How to add to the configuration wizard when a new module is installed

2017-03-02 Thread Vincent Bastos


On Saturday, February 18, 2017 at 10:20:07 PM UTC+10, Cédric Krier wrote:
>
> On 2017-02-17 22:42, Vincent Bastos wrote: 
> > Hi, 
> > 
> > I am unable to figure out how modules are able to "append" to the 
> > configuration wizard when a new module is installed. 
> > 
> > I have created a configuration.py file and configuration.xml file with a 
> > form, but this does not come up when I install my module. 
> > 
> > I thought that Tryton automatically added configuration files to the 
> > wizard, but I was unable to find this in the code. 
>
> Explicit is better than implicit. 
> You have to create an entry in ir.module.config_wizard.item 
>

I suppose I also have to create Configuration class that extends a Wizard?

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/b9ec2a2b-b685-4d3f-b71d-95ba42ac19f7%40googlegroups.com.


Re: [tryton-dev] How to add to the configuration wizard when a new module is installed

2017-02-18 Thread Cédric Krier
On 2017-02-17 22:42, Vincent Bastos wrote:
> Hi,
> 
> I am unable to figure out how modules are able to "append" to the 
> configuration wizard when a new module is installed.
> 
> I have created a configuration.py file and configuration.xml file with a 
> form, but this does not come up when I install my module.
> 
> I thought that Tryton automatically added configuration files to the 
> wizard, but I was unable to find this in the code.

Explicit is better than implicit.
You have to create an entry in ir.module.config_wizard.item

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20170218121515.GC24040%40tetsuo.


[tryton-dev] How to add to the configuration wizard when a new module is installed

2017-02-17 Thread Vincent Bastos
Hi,

I am unable to figure out how modules are able to "append" to the 
configuration wizard when a new module is installed.

I have created a configuration.py file and configuration.xml file with a 
form, but this does not come up when I install my module.

I thought that Tryton automatically added configuration files to the 
wizard, but I was unable to find this in the code.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/275d44f5-20de-4132-8db8-ad8a5ecabd42%40googlegroups.com.