Skip to content

Commit

Permalink
[IMP] purchase_request: Hide the company_id field from the lines and …
Browse files Browse the repository at this point in the history
…make it no store

TT51248
  • Loading branch information
victoralmau committed Nov 13, 2024
1 parent 0caf7e2 commit 8ea204c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion purchase_request/models/purchase_request_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class PurchaseRequestLine(models.Model):
comodel_name="res.company",
related="request_id.company_id",
string="Company",
store=True,
)
requested_by = fields.Many2one(
comodel_name="res.users",
Expand Down
6 changes: 0 additions & 6 deletions purchase_request/views/purchase_request_line_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,6 @@
readonly="1"
/>
<field name="date_planned" widget="date" readonly="1" />
<field
name="company_id"
readonly="1"
groups="base.group_multi_company"
options="{'no_create': True}"
/>
<field
name="analytic_distribution"
widget="analytic_distribution"
Expand Down

0 comments on commit 8ea204c

Please sign in to comment.