sbejaoui
5 years ago
committed by
Simone Orsi
10 changed files with 80 additions and 81 deletions
-
1partner_identification_gln/__init__.py
-
28partner_identification_gln/__manifest__.py
-
20partner_identification_gln/data/partner_identification_gln.xml
-
1partner_identification_gln/models/__init__.py
-
30partner_identification_gln/models/res_partner_id_category.py
-
4partner_identification_gln/readme/CONTRIBUTORS.rst
-
3partner_identification_gln/readme/DESCRIPTION.rst
-
1partner_identification_gln/readme/INSTALL.rst
-
1partner_identification_gln/tests/__init__.py
-
72partner_identification_gln/tests/test_gln.py
@ -1,2 +1 @@ |
|||||
|
|
||||
from . import models |
from . import models |
@ -1,15 +1,25 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- Copyright 2016-2017 ACSONE SA/NV (<http://acsone.eu>) |
<!-- Copyright 2016-2017 ACSONE SA/NV (<http://acsone.eu>) |
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
||||
<odoo> |
<odoo> |
||||
<record id="partner_identification_gln_number_category" model="res.partner.id_category"> |
|
||||
|
<record |
||||
|
id="partner_identification_gln_number_category" |
||||
|
model="res.partner.id_category" |
||||
|
> |
||||
<field name="name">GLN Identification Number</field> |
<field name="name">GLN Identification Number</field> |
||||
<field name="code">gln_id_number</field> |
<field name="code">gln_id_number</field> |
||||
<field name="validation_code"><![CDATA[failed = self.validate_res_partner_gln(id_number)]]></field> |
|
||||
|
<field |
||||
|
name="validation_code" |
||||
|
><![CDATA[failed = self.validate_res_partner_gln(id_number)]]></field> |
||||
</record> |
</record> |
||||
<record id="partner_identification_gcp_number_category" model="res.partner.id_category"> |
|
||||
|
<record |
||||
|
id="partner_identification_gcp_number_category" |
||||
|
model="res.partner.id_category" |
||||
|
> |
||||
<field name="name">GCP Identification Number</field> |
<field name="name">GCP Identification Number</field> |
||||
<field name="code">gcp_id_number</field> |
<field name="code">gcp_id_number</field> |
||||
<field name="validation_code"><![CDATA[failed = self.validate_res_partner_gcp(id_number)]]></field> |
|
||||
|
<field |
||||
|
name="validation_code" |
||||
|
><![CDATA[failed = self.validate_res_partner_gcp(id_number)]]></field> |
||||
</record> |
</record> |
||||
</odoo> |
</odoo> |
@ -1,2 +1 @@ |
|||||
|
|
||||
from . import res_partner_id_category |
from . import res_partner_id_category |
@ -0,0 +1,4 @@ |
|||||
|
* Alvaro Estebanez <alvaro.estebanez@braintec-group.com> |
||||
|
* Denis Roussel <denis.roussel@acsone.eu> |
||||
|
* Meyomesse Gilles <meyomesse.gilles@gmail.com> |
||||
|
* Bejaoui Souheil <souheil.bejaoui@acsone.eu> |
@ -0,0 +1,3 @@ |
|||||
|
This addon extends "Partner Identification Numbers" to provide a number category for GLN registration |
||||
|
|
||||
|
see: http://www.gs1.org/1/glnrules/en/ |
@ -0,0 +1 @@ |
|||||
|
This module depends on 'stdnum' python module |
@ -1,2 +1 @@ |
|||||
|
|
||||
from . import test_gln |
from . import test_gln |
Write
Preview
Loading…
Cancel
Save
Reference in new issue