Browse Source

[WIP]

pull/129/head
Sylvain LE GAL 8 years ago
parent
commit
6f4b238f0e
  1. 4
      barcodes_generate/README.rst
  2. BIN
      barcodes_generate/static/description/product_product_form_empty.png
  3. BIN
      barcodes_generate/static/description/product_product_form_generate_barcode.png
  4. BIN
      barcodes_generate/static/description/product_product_form_generate_base_barcode.png
  5. 3
      barcodes_generate/views/view_product_product.xml
  6. 3
      barcodes_generate/views/view_res_partner.xml

4
barcodes_generate/README.rst

@ -45,7 +45,7 @@ To use this module, you need to:
* Go to a Product form (or a Partner Form): * Go to a Product form (or a Partner Form):
* set a rule to the current object * set a rule to the current object
.. image:: /barcodes_generate/static/description/product_product_form_empty.png
.. image:: /barcodes_generate/static/description/product_product_form_generate_base_barcode.png
* Click on 'Generate Base and Barcode' * Click on 'Generate Base and Barcode'
@ -54,6 +54,8 @@ To use this module, you need to:
Alternatively you can set manually a barcode base, and click only on Generate barcode. Alternatively you can set manually a barcode base, and click only on Generate barcode.
.. image:: /barcodes_generate/static/description/product_product_form_generate_barcode.png
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/184/9.0 :target: https://runbot.odoo-community.org/runbot/184/9.0

BIN
barcodes_generate/static/description/product_product_form_empty.png

Before

Width: 424  |  Height: 126  |  Size: 11 KiB

BIN
barcodes_generate/static/description/product_product_form_generate_barcode.png

After

Width: 428  |  Height: 130  |  Size: 11 KiB

BIN
barcodes_generate/static/description/product_product_form_generate_base_barcode.png

After

Width: 424  |  Height: 126  |  Size: 10 KiB

3
barcodes_generate/views/view_product_product.xml

@ -28,8 +28,9 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
('barcode_base', '!=', False)]}" ('barcode_base', '!=', False)]}"
groups="barcodes_generate.generate_product_barcode" colspan="1"/> groups="barcodes_generate.generate_product_barcode" colspan="1"/>
<button name="generate_barcode" type="object" string="Generate Barcode" <button name="generate_barcode" type="object" string="Generate Barcode"
attrs="{'invisible': ['|',
attrs="{'invisible': ['|', '|',
('barcode_rule_id', '=', False), ('barcode_rule_id', '=', False),
('barcode_base', '=', False),
('barcode', '!=', False)]}" ('barcode', '!=', False)]}"
groups="barcodes_generate.generate_partner_barcode" colspan="1"/> groups="barcodes_generate.generate_partner_barcode" colspan="1"/>
</field> </field>

3
barcodes_generate/views/view_res_partner.xml

@ -28,8 +28,9 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
('barcode_base', '!=', False)]}" ('barcode_base', '!=', False)]}"
groups="barcodes_generate.generate_partner_barcode" colspan="1"/> groups="barcodes_generate.generate_partner_barcode" colspan="1"/>
<button name="generate_barcode" type="object" string="Generate Barcode" <button name="generate_barcode" type="object" string="Generate Barcode"
attrs="{'invisible': ['|',
attrs="{'invisible': ['|', '|',
('barcode_rule_id', '=', False), ('barcode_rule_id', '=', False),
('barcode_base', '=', False),
('barcode', '!=', False)]}" ('barcode', '!=', False)]}"
groups="barcodes_generate.generate_partner_barcode" colspan="1"/> groups="barcodes_generate.generate_partner_barcode" colspan="1"/>
</field> </field>

Loading…
Cancel
Save