Skip to content

[9.0][ADD] product_pricelist_fixed_price: Merged in product - #1471

Merged
StefanRijnhart merged 1 commit into
OCA:9.0from
Tecnativa:9.0-product_pricelist_fixed_price
Aug 7, 2018
Merged

[9.0][ADD] product_pricelist_fixed_price: Merged in product#1471
StefanRijnhart merged 1 commit into
OCA:9.0from
Tecnativa:9.0-product_pricelist_fixed_price

Conversation

@pedrobaeza

@pedrobaeza pedrobaeza commented Aug 7, 2018

Copy link
Copy Markdown
Member

There's no need of nothing more as these lines cover the fixed price and at the end, this module adapts the UI for setting that values on background:

# but ones that arguably are meant to be fixed prices should be fixed
openupgrade.logged_query(
cr,
"update product_pricelist_item "
"set compute_price='fixed', fixed_price=price_surcharge "
"where compute_price='formula' and price_discount=100 and "
"price_surcharge > 0 and coalesce(price_min_margin, 0)=0 and "
"coalesce(price_max_margin, 0)=0"
)

@Tecnativa

@pedrobaeza pedrobaeza added this to the 9.0 milestone Aug 7, 2018
@StefanRijnhart
StefanRijnhart merged commit 60ecc38 into OCA:9.0 Aug 7, 2018
@pedrobaeza
pedrobaeza deleted the 9.0-product_pricelist_fixed_price branch August 7, 2018 10:46
@pedrobaeza

Copy link
Copy Markdown
Member Author

Thanks for the quick prompt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants