[3337][ADD] vendor_bill_final_price_check#41
Conversation
|
@AungKoKoLin1997 I think we should add some log in the chatter once the manager click confirm bool and save the record. this is to notify the accounting user that the invoice he/she handled has been confirmed since the boolean itself is only can be seen by the manager. how do you think? the scenario would be:
|
| @api.onchange("price_unit") | ||
| def _onchange_price_unit(self): | ||
| for line in self: | ||
| if not line.move_id.move_type == "in_invoice": | ||
| return | ||
|
|
||
| if not line.purchase_line_id: | ||
| return | ||
|
|
||
| if line.product_id and line.product_id.cost_method != "standard": | ||
| line._origin.move_id.write({"is_change_price": True}) |
There was a problem hiding this comment.
This only covers a partial (minor) scenario and we cannot rely on this approach. This logic doesn't cover, for example, the case where SVL is generated due to exchange rate difference between receipt and vendor bill. What I had in mind was to insert a check where SVL record is created.
|
Here are the Functional test result:
|
3337