Skip to content

Commit

Permalink
[MIG] stock_landed_costs_priority: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Jan 7, 2025
1 parent 82b134c commit 7b05730
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions stock_landed_costs_priority/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Contributors

- Laura Cazorla <[email protected]>

- Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>

Maintainers
-----------

Expand Down
2 changes: 1 addition & 1 deletion stock_landed_costs_priority/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Stock Landed Costs Priority",
"version": "15.0.1.0.0",
"version": "18.0.1.0.0",
"summary": "Add priority to landed costs",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
Expand Down
3 changes: 2 additions & 1 deletion stock_landed_costs_priority/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- [ForgeFlow](https://forgeflow.com):
- [ForgeFlow](https://forgeflow.com):
- Laura Cazorla \<<[email protected]>\>
- Heliconia Solutions Pvt. Ltd. \<<https://www.heliconia.io>\>
1 change: 1 addition & 0 deletions stock_landed_costs_priority/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<li>Laura Cazorla &lt;<a class="reference external" href="mailto:laura.cazorla&#64;forgeflow.com">laura.cazorla&#64;forgeflow.com</a>&gt;</li>
</ul>
</li>
<li>Heliconia Solutions Pvt. Ltd. &lt;<a class="reference external" href="https://www.heliconia.io">https://www.heliconia.io</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
15 changes: 12 additions & 3 deletions stock_landed_costs_priority/views/stock_landed_cost_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<field name="model">stock.landed.cost</field>
<field name="inherit_id" ref="stock_landed_costs.view_stock_landed_cost_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_title')]/h1" position="attributes">
<attribute name="style">display: flex</attribute>
</xpath>
<field name="name" position="before">
<field name="priority" widget="priority" class="mr-3" />
<field name="priority" widget="priority" class="mr4" />
</field>
</field>
</record>
Expand Down Expand Up @@ -40,8 +43,14 @@
ref="stock_landed_costs.stock_landed_cost_view_kanban"
/>
<field name="arch" type="xml">
<xpath expr="//span[@t-esc='record.name.value']" position="before">
<field name="priority" widget="priority" />
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="class">col-5 fw-bolder</attribute>
</xpath>
<xpath expr="//field[@name='state']/.." position="attributes">
<attribute name="class">col-5 p-0</attribute>
</xpath>
<xpath expr="//field[@name='name']" position="before">
<field name="priority" widget="priority" class="col-1" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit 7b05730

Please sign in to comment.