Discussion:
[Erp5-dev] "getMaritalStatusId" error on Payroll business template with ERP5 LiveCD rc 1.0
y.pauthier
2005-04-11 05:46:18 UTC
Permalink
hi,
<PythonScript at /erp5/PaySheetTransaction_checkParameters used >for
/erp5/accounting/2> Line 22
AttributeError: getMaritalStatusId
The test defined below in the file "PaySheetTransaction_checkParameters" file
return context.REQUEST.RESPONSE.redirect(context.absolute_url() +
'?>portal_status_message=The+employee+must+have+a+marital+status')

In the "ERP5 live CD RC 1.0" the "Person.py" does not contain any information
about "marital status". The "marital status" has been defined in the Person.py
v2.9 (Fri Feb 11 10:30:57 2005) which is newer than "ERP5 live CD RC 1.0".

So what is the best choice for me :
- should i patch the payroll bt ?
- should i patch the person.py and dependency ?
- should i give up "Live CD version" and create a new version with your CVS ?

or is there any other solution ?

cordialement,

Yannick Pauthier
Kevin Deldycke
2005-04-12 11:31:41 UTC
Permalink
Post by y.pauthier
In the "ERP5 live CD RC 1.0" the "Person.py" does not contain any
information about "marital status". The "marital status" has been defined
in the Person.py v2.9 (Fri Feb 11 10:30:57 2005) which is newer than "ERP5
live CD RC 1.0".
That's right. And the erp5_core Business Template was also updated to include
the modification about marital status. See version 1.22 of
http://openbrick.org/cgi-bin/viewcvs.cgi/ERP5/bootstrap/erp5_core.bt5
Post by y.pauthier
- should i patch the payroll bt ?
- should i patch the person.py and dependency ?
- should i give up "Live CD version" and create a new version with your CVS ?
or is there any other solution ?
You can update your erp5_core businness template with the last one. Here is
the process :
1. import the last erp5_core.bt from the CVS
( http://openbrick.org/cgi-bin/viewcvs.cgi/*checkout*/ERP5/bootstrap/erp5_core.bt5 ),
2. install it.
--
Kev.
Loading...