Skip to content

Commit

Permalink
[14.0][IMP] custom_p:
Browse files Browse the repository at this point in the history
  • Loading branch information
Berezi committed Dec 20, 2024
1 parent 9b29a37 commit fa547ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_p/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ def _get_invoice_qty(self):
@api.model
def create(self, values):
result = super(SaleOrderLine, self).create(values)
if not self.order_id.commitment_date:
if not result.order_id.commitment_date:
result.order_id.commitment_date = result.order_id.expected_date
return result
5 changes: 5 additions & 0 deletions custom_p/security/picking_unlock_groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@
<field name="name">Button Unlock Picking</field>
<field name="category_id" ref="base.module_category_hidden" />
</record>

<record id="group_create_contact" model="res.groups">
<field name="name">Button Create Contact</field>
<field name="category_id" ref="base.module_category_hidden" />
</record>
</odoo>

0 comments on commit fa547ee

Please sign in to comment.