On 2017-06-11 03:11, Dr. Praveen Bhatia wrote:
> 
> 
> On Sunday, June 11, 2017 at 5:10:05 PM UTC+9, Cédric Krier wrote:
> >
> > On 2017-06-10 10:23, 'Artem Braga' via tryton wrote: 
> > > суббота, 10 июня 2017 г., 18:32:15 UTC+3 пользователь Dr. Praveen Bhatia 
> > > написал: 
> > > >    I get this error 
> > > > The field "Account Payable" on "Party" is required 
> > > >   When party.save() is done after creating company. 
> > > > 
> > > > However, I dont get this error before creating company. 
> > > > 
> > > > What is the logic behind this? 
> > > It is required to assign account payable and account receivable to every 
> > > party created. These fields become required after some settings (do not 
> > > remember which exactly) are done. 
> >
> > Once the user is in a company. But I'm wondering if it is really a good 
> > choice to make a field required depending on the context. 
> >
> >  
> In general, how does one know what is the "required" field of any Model, 
> specially, when it also depends on the context. This is for programming in 
> Proteus.

You have to look at the Model definition in each modules.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

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

Reply via email to