Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
bd727ab6
Commit
bd727ab6
authored
2 years ago
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add field for last product added date
parent
b9bdac40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
product_shelfs.py
lacagette_addons/lacagette_shelfs/models/product_shelfs.py
+1
-0
No files found.
lacagette_addons/lacagette_shelfs/models/product_shelfs.py
View file @
bd727ab6
...
...
@@ -14,6 +14,7 @@ class productShelfs(models.Model):
last_inventory_id
=
fields
.
Integer
(
string
=
"Last inventory ID"
,
default
=
0
)
last_inv_delta_percentage
=
fields
.
Float
(
string
=
"Last Inventory Quantity Delta Percentage"
,
digits
=
(
10
,
2
))
last_inv_losses_percentage
=
fields
.
Float
(
string
=
"Last Inventory Losses Percentage"
,
digits
=
(
10
,
2
))
date_last_product_added
=
fields
.
Date
(
string
=
"Date of last product added to shelf"
,
default
=
"0001-01-01"
)
_sql_constraints
=
[
(
'unique_name'
,
'unique(name)'
,
'Name must be unique !'
),
(
'unique_order'
,
'unique(sort_order)'
,
'Num must be unique !'
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment