Skip to content

Commit

Permalink
Merge PR #52 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by andhit-r
  • Loading branch information
ssi-bot committed Jul 8, 2024
2 parents c5bd80b + 10b7a26 commit 57957e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ssi_stock/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class StockPicking(models.Model):
related="picking_type_id.category_id",
store=True,
)
partner_tag_ids = fields.Many2many(
string="Partner Tags",
related="partner_id.commercial_partner_id.category_id",
store=False,
)
show_price_unit = fields.Boolean(
string="Show Price Unit",
related="picking_type_id.show_price_unit",
Expand Down
3 changes: 3 additions & 0 deletions ssi_stock/views/stock_picking_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<xpath expr="//field[@name='picking_type_id']" position="before">
<field name="picking_type_category_id" invisible="1" />
</xpath>
<xpath expr="//field[@name='partner_id']" position="after">
<field name="partner_tag_ids" widget="many2many_tags" optional="hide" />
</xpath>
<xpath expr="//field[@name='date_deadline']" position="after">
<field name="date_backdating" optional="hide" />
<field name="date_done" />
Expand Down

0 comments on commit 57957e4

Please sign in to comment.