[IMP] product: “Public Price” into “Sales Price” in the pricelist.

TaskID: 1920476

closes odoo/odoo#30550
This commit is contained in:
Prakash Prajapati
2019-04-04 08:59:01 +00:00
committed by jem-odoo
parent 4327fbebfd
commit 407834d1ca
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -416,12 +416,12 @@ class PricelistItem(models.Model):
default='3_global', required=True,
help='Pricelist Item applicable on selected option')
base = fields.Selection([
('list_price', 'Public Price'),
('list_price', 'Sales Price'),
('standard_price', 'Cost'),
('pricelist', 'Other Pricelist')], "Based on",
default='list_price', required=True,
help='Base price for computation.\n'
'Public Price: The base price will be the Sale/public Price.\n'
'Sales Price: The base price will be the Sales Price.\n'
'Cost Price : The base price will be the cost price.\n'
'Other Pricelist : Computation of the base price based on another Pricelist.')
base_pricelist_id = fields.Many2one('product.pricelist', 'Other Pricelist')
@@ -60,7 +60,7 @@
<label for="" string="New Price ="/>
<div>
<span attrs="{'invisible':[('base', '!=', 'list_price')]}">Public Price - </span>
<span attrs="{'invisible':[('base', '!=', 'list_price')]}">Sales Price - </span>
<span attrs="{'invisible':[('base', '!=', 'standard_price')]}">Cost - </span>
<span attrs="{'invisible':[('base', '!=', 'pricelist')]}">Other Pricelist - </span>
</div>