Confustion regarding : The field "Account Payable" on "Party" is required

53 views
Skip to first unread message

Dr. Praveen Bhatia

unread,
Jun 10, 2017, 11:32:15 AM6/10/17
to tryton
Hi,
   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?


Artem Braga

unread,
Jun 10, 2017, 1:23:57 PM6/10/17
to tryton
суббота, 10 июня 2017 г., 18:32:15 UTC+3 пользователь Dr. Praveen Bhatia написал:
Hello. 
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. Just choose receivable/payable accounts for the party out of the chart of accounts.


 

Cédric Krier

unread,
Jun 11, 2017, 4:10:05 AM6/11/17
to tryton
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.

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

Dr. Praveen Bhatia

unread,
Jun 11, 2017, 6:11:29 AM6/11/17
to tryton


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.
 
Website: http://www.b2ck.com/

Cédric Krier

unread,
Jun 11, 2017, 1:30:09 PM6/11/17
to tryton
You have to look at the Model definition in each modules.

Sergi Almacellas Abellana

unread,
Jun 12, 2017, 4:15:16 AM6/12/17
to try...@googlegroups.com
El 11/06/17 a les 10:05, Cédric Krier ha escrit:
> 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.
I'm in favor of not making the field required. I just filled:

https://bugs.tryton.org/issue6561

So please drop your comments there if you have some concern about
removing the required.

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

Artem Braga

unread,
Jun 12, 2017, 5:39:50 AM6/12/17
to tryton
понедельник, 12 июня 2017 г., 11:15:16 UTC+3 пользователь Sergi Almacellas Abellana написал:
I actually have arguments agains having AR/AP as required for Party. Quite often companies might have a list of contact parties, banks of customers and suppliers and other parties, which are used for contact (not accounting) purposes only and therefore do not require receivable and payable at all. 


 
Reply all
Reply to author
Forward
0 new messages