Skip to content

Commit

Permalink
[MIG] purchase_partner_incoterm: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manishkumarbohra committed Jan 26, 2024
1 parent ec4ad67 commit 9c3eb9a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 27 deletions.
6 changes: 3 additions & 3 deletions purchase_partner_incoterm/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Default purchase incoterm per partner
=====================================

..
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
Expand Down Expand Up @@ -71,7 +71,7 @@ Contributors
* Raphaël Reverdy <[email protected]>
* `InitOS <https://www.initos.com>`_:
* Dhara Solanki <[email protected]>

* Manish Kumar Bohra <[email protected]>
Other credits
~~~~~~~~~~~~~

Expand Down Expand Up @@ -101,7 +101,7 @@ promote its widespread use.

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-TDu| |maintainer-bealdav|
|maintainer-TDu| |maintainer-bealdav|

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/16.0/purchase_partner_incoterm>`_ project on GitHub.

Expand Down
2 changes: 1 addition & 1 deletion purchase_partner_incoterm/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Default purchase incoterm per partner",
"summary": "Add a an incoterm field for supplier and use it on purchase order",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Purchase",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
Expand Down
9 changes: 5 additions & 4 deletions purchase_partner_incoterm/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
- [Camptocamp](https://www.camptocamp.com):
- [Camptocamp](https://www.camptocamp.com):
- Thierry Ducrest \<<[email protected]>\>
- Denis Leemann \<<[email protected]>\>

- [Trobz](https://trobz.com):
- [Trobz](https://trobz.com):
- Son Ho \<<[email protected]>\>

- [Akretion](https://akretion.com):
- [Akretion](https://akretion.com):
- David BEAL \<<[email protected]>\>
- Raphaël Reverdy \<<[email protected]>\>

- [InitOS](https://www.initos.com):
- [InitOS](https://www.initos.com):
- Dhara Solanki \<<[email protected]>\>
* Manish Kumar Bohra <[email protected]>
1 change: 1 addition & 0 deletions purchase_partner_incoterm/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
* Raphaël Reverdy <[email protected]>
* `InitOS <https://www.initos.com>`_:
* Dhara Solanki <[email protected]>
* Manish Kumar Bohra <[email protected]>
30 changes: 11 additions & 19 deletions purchase_partner_incoterm/views/partner_view.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="view_partner_purchase_form" model="ir.ui.view">
<field name="name">res.partner.purchase.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<group name="purchase" position="inside">
<field
name="purchase_incoterm_id"
attrs="{'readonly': [('parent_id','!=',False)]}"
/>
<field
name="purchase_incoterm_address_id"
attrs="{'readonly': [('parent_id','!=',False)]}"
/>
</group>
</field>
</record>

<record id="view_partner_purchase_form" model="ir.ui.view">
<field name="name">res.partner.purchase.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<group name="purchase" position="inside">
<field name="purchase_incoterm_id" readonly="parent_id" />
<field name="purchase_incoterm_address_id" readonly="parent_id" />
</group>
</field>
</record>
</odoo>

0 comments on commit 9c3eb9a

Please sign in to comment.