You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?xml version="1.0" encoding="UTF-8"?> <!--
Copyright (C) 2016-Today: GRAP (http://www.grap.coop) @author Sylvain LE GAL (https://twitter.com/legalsylvain) License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<openerp><data>
<record id="view_res_partner_form" model="ir.ui.view"> <field name="model">res.partner</field> <field name="inherit_id" ref="point_of_sale.view_partner_property_form"/> <field name="arch" type="xml"> <field name="ean13" position="before"> <field name="barcode_rule_id" domain="[('is_partner_available', '=', True)]" groups="barcodes_generate.generate_partner_barcode" colspan="2" attrs="{'readonly': [('ean13', '!=', False)]}"/> <field name="barcode_base" attrs="{'invisible': [('barcode_rule_id', '=', False)], 'readonly': [('ean13', '!=', False)]}" groups="barcodes_generate.generate_partner_barcode" colspan="2"/> <button name="generate_barcode" type="object" string="Generate Barcode" attrs="{'invisible': ['|','|', ('ean13', '!=', False), ('barcode_rule_id', '=', False), ('barcode_base', '=', 0)]}" groups="barcodes_generate.generate_partner_barcode" colspan="2"/> </field> </field> </record>
</data></openerp>
|