Browse Source

pre-commit update

14.0
OCA-git-bot 5 years ago
committed by mostafaala2
parent
commit
45a4d4b92a
  1. 2
      base_partner_sequence/data/partner_sequence.xml
  2. 10
      base_partner_sequence/views/partner_view.xml

2
base_partner_sequence/data/partner_sequence.xml

@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" ?>
<odoo noupdate="1">
<record id="seq_res_partner" model="ir.sequence">
<field name="name">Partner code</field>

10
base_partner_sequence/views/partner_view.xml

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">Make partner reference readonly when non-commercial</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<field name="ref" position="attributes">
<attribute name="attrs">{'readonly': [('is_company', '=', False), ('parent_id', '!=', False)]}</attribute>
<attribute
name="attrs"
>{'readonly': [('is_company', '=', False), ('parent_id', '!=', False)]}</attribute>
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save