Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tryton
Tryton
Commits
b6ab2f2687eb
Commit
b6ab2f26
authored
Jan 08, 2023
by
Cédric Krier
Browse files
Add help text about price selection of product
Closes
#8950
parent
18b36a433c20
Pipeline
#61665
passed with stages
in 13 minutes and 41 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
modules/product_price_list/price_list.py
View file @
b6ab2f26
...
...
@@ -55,8 +55,10 @@
(
'product_default'
,
"Product Default"
),
],
"Unit"
,
required
=
True
,
help
=
"The unit in which the quantity is expressed."
)
lines
=
fields
.
One2Many
(
'product.price_list.line'
,
'price_list'
,
'Lines'
,
help
=
"Add price formulas for different criterias."
)
lines
=
fields
.
One2Many
(
'product.price_list.line'
,
'price_list'
,
"Lines"
,
help
=
"Add price formulas for different criteria.
\n
"
"The first matching line is used."
)
@
staticmethod
def
default_company
():
...
...
modules/purchase/product.py
View file @
b6ab2f26
...
...
@@ -280,8 +280,10 @@
depends
=
{
'company'
})
name
=
fields
.
Char
(
"Name"
,
translate
=
True
)
code
=
fields
.
Char
(
"Code"
)
prices
=
fields
.
One2Many
(
'purchase.product_supplier.price'
,
'product_supplier'
,
'Prices'
)
prices
=
fields
.
One2Many
(
'purchase.product_supplier.price'
,
'product_supplier'
,
"Prices"
,
help
=
"Add price for different criteria.
\n
"
"The last matching line is used."
)
company
=
fields
.
Many2One
(
'company.company'
,
"Company"
,
required
=
True
,
ondelete
=
'CASCADE'
)
...
...
Write
Preview
Supports
Markdown
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