Skip to content

Commit

Permalink
re-adjust date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
yostashiro committed Jun 15, 2024
1 parent 34fd7e0 commit dc1b23d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions quality_control_oca/models/qc_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def _compute_product_id(self):
readonly=True,
copy=False,
default=fields.Datetime.now,
states={
"plan": [("readonly", False)],
"draft": [("readonly", False)],
"ready": [("readonly", False)],
},
states={"plan": [("readonly", False)], "draft": [("readonly", False)]},
)
date_done = fields.Datetime("Completion Date", readonly=True)
object_id = fields.Reference(
Expand Down
2 changes: 0 additions & 2 deletions quality_control_oca/views/qc_inspection_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<field name="product_id" />
</group>
<group>
<field name="create_date" string="Create Date" />
<field name="date" />
<field name="date_done" />
<field name="success" />
Expand Down Expand Up @@ -144,7 +143,6 @@
<field name="test" />
<field name="qty" />
<field name="product_id" />
<field name="create_date" string="Create Date" optional="show" />
<field name="date" optional="show" />
<field name="date_done" optional="show" />
<field name="success" />
Expand Down

0 comments on commit dc1b23d

Please sign in to comment.