add barcode_generator_partner from OCA/stock-logistics-barcode/pull/536
This commit is contained in:
parent
8d39b937a8
commit
7c8d1e4342
27 changed files with 1581 additions and 16 deletions
25
barcode_generator_partner/demo/barcode_rule.xml
Normal file
25
barcode_generator_partner/demo/barcode_rule.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
|
||||
Copyright (C) 2016-Today La Louve (http://www.lalouve.net)
|
||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="partner_generated_barcode" model="barcode.rule">
|
||||
<field name="name">Partner Rule (Generated Barcode)</field>
|
||||
<field
|
||||
name="barcode_nomenclature_id"
|
||||
ref="barcodes.default_barcode_nomenclature"
|
||||
/>
|
||||
<field name="type">client</field>
|
||||
<field name="sequence">998</field>
|
||||
<field name="encoding">ean13</field>
|
||||
<field name="pattern">042.........</field>
|
||||
<field name="generate_type" eval="'sequence'" />
|
||||
<field name="generate_model" eval="'res.partner'" />
|
||||
<field name="sequence_id" ref="partner_ir_sequence" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
22
barcode_generator_partner/demo/function.xml
Normal file
22
barcode_generator_partner/demo/function.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
|
||||
Copyright (C) 2016-Today La Louve (http://www.lalouve.net)
|
||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<function
|
||||
model="res.partner"
|
||||
name="generate_base"
|
||||
eval="[ref('res_partner_barcode')]"
|
||||
/>
|
||||
|
||||
<function
|
||||
model="res.partner"
|
||||
name="generate_barcode"
|
||||
eval="[ref('res_partner_barcode')]"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
16
barcode_generator_partner/demo/ir_sequence.xml
Normal file
16
barcode_generator_partner/demo/ir_sequence.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
|
||||
Copyright (C) 2016-Today La Louve (http://www.lalouve.net)
|
||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="partner_ir_sequence" model="ir.sequence">
|
||||
<field name="name">Partner Sequence (Generated Barcode)</field>
|
||||
<field name="padding">10</field>
|
||||
<field name="number_next">1</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
15
barcode_generator_partner/demo/res_partner.xml
Normal file
15
barcode_generator_partner/demo/res_partner.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
|
||||
Copyright (C) 2016-Today La Louve (http://www.lalouve.net)
|
||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="res_partner_barcode" model="res.partner">
|
||||
<field name="name">Partner with Generated Barcode</field>
|
||||
<field name="barcode_rule_id" ref="partner_generated_barcode" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue