-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shivamg9
committed
Aug 14, 2024
1 parent
b70901b
commit c82dda0
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo noupdate="1"> | ||
<record id="seq_enumerator_code" model="ir.sequence"> | ||
<field name="name">EID</field> | ||
<field name="code">enumeratorCode</field> | ||
<field name="prefix">EID-</field> | ||
<field name="padding">5</field> | ||
<field name="company_id" eval="False"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<odoo> | ||
<record id="view_res_partner_eid_form" model="ir.ui.view"> | ||
<field name="name">res.partner.eid.form</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="base.view_partner_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='name']" position="after"> | ||
<field | ||
name="eid" context="{'default_supplier_rank': active_id and active_id or 1}" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="view_res_partner_eid_tree" model="ir.ui.view"> | ||
<field name="name">res.partner.tree</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="base.view_partner_tree"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='display_name']" position="after"> | ||
<field name="eid" context="{'default_supplier_rank': active_id and active_id or 1}" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="view_groups_form_inherit_eid" model="ir.ui.view"> | ||
<field name="name">view.groups.form.inherit.eid</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="g2p_registry_group.view_groups_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='create_uid']" position="after"> | ||
<field name="creator_eid" readonly="1"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> | ||
|
||
<!-- invisible="context.get('default_supplier_rank') < 1" --> |