Skip to content

Commit

Permalink
ADD dn_supplier_number and dn_supplier_date fields in stock.picking
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzamoabg authored and Borruso committed Jan 21, 2025
1 parent 4db0b40 commit c85d4ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n_it_delivery_note/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class StockPicking(models.Model):
delivery_note_draft = fields.Boolean(compute="_compute_boolean_flags")
delivery_note_readonly = fields.Boolean(compute="_compute_boolean_flags")
can_be_invoiced = fields.Boolean(compute="_compute_boolean_flags")
dn_supplier_number = fields.Char(string="Supplier DN Number", copy=False)
dn_supplier_date = fields.Date(string="Supplier DN Date", copy=False)

@property
def _delivery_note_fields(self):
Expand Down
7 changes: 7 additions & 0 deletions l10n_it_delivery_note/views/stock_picking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@
/>
</group>
</group>
<group invisible="picking_type_code != 'incoming'">
<group>
<field name="dn_supplier_number" />
<field name="dn_supplier_date" />
</group>
</group>
<separator
string="Delivery Notes"
invisible="not delivery_note_exists"
Expand Down Expand Up @@ -377,6 +383,7 @@
name="validated_delivery_note"
domain="[('delivery_note_state', '=', 'confirm')]"
/>
<field name="dn_supplier_number" />
</xpath>
<group position="inside">
<filter
Expand Down

0 comments on commit c85d4ad

Please sign in to comment.