Commit Graph

97 Commits

Author SHA1 Message Date
Albert Cervera i Areny 61d2471b48 Rename Uom to Unit for bill of material 2023-09-13 15:21:04 +02:00
Albert Cervera i Areny 3aa3887d56 on_change_with of One2Many fields only supports returning a list of objects now. 2023-08-17 19:13:05 +02:00
Albert Cervera i Areny 8ef6fd12a8 Remove pdb.set_trace() 2023-08-11 17:27:07 +02:00
Albert Cervera i Areny e1cdf75747 Improve the way we manage depends on fields. 2023-08-11 17:26:43 +02:00
Albert Cervera i Areny 11cc201362 Do not crash if cost is None. 2023-07-19 00:30:09 +02:00
Juanjo Garcia 91f66183b6 Instead of remove boms lines, delete the lines.
Task #159390
2023-05-30 16:10:16 +02:00
Juanjo Garcia f9cb1e8e60 Delete default value when copy from a function field.
Task #048598
2023-03-20 17:09:13 +01:00
Raimon Esteve e08a872ffa Use declarative index definition for ModelSQL
issue5757
2022-11-09 16:28:19 +01:00
Raimon Esteve b147f2bd9e Add round_price
issue9146
2022-10-17 11:51:46 +02:00
Raimon Esteve 8fc2e61745 FIX typo UserWarning key (clean)
#048915
2022-02-15 16:31:24 +01:00
Àngel Àlvarez Serra 628613a2b3 avoid recursion exception (#1)
#044450 avoid recursion exception
2021-12-14 17:05:10 +01:00
Juanjo Garcia 176b59c834 Add missing round to "_get_input_line" function.
Task #048256
2021-11-24 13:17:52 +01:00
Raimon Esteve f3a8c38822 Use deactivable mixin
issue4341
2021-09-10 12:12:21 +02:00
Juanjo Garcia cc9963c0dd Revert "Check the new boms with the boms we have in the cost_plan to avoid recursion."
In version 6 or higher, you dont need this commit.

This reverts commit 89ce80efd9.
2021-05-31 11:37:22 +02:00
Juanjo Garcia 89ce80efd9 Check the new boms with the boms we have in the cost_plan to avoid recursion.
044671
2021-05-31 09:48:26 +02:00
Albert Cervera i Areny b65280218c Store directly sequence type to sequence 2021-03-20 02:05:12 +01:00
Juanjo Garcia 26d7a90589 Ensure that get_cost_price is always a decimal.
041293
2020-10-16 14:33:59 +02:00
Raimon Esteve d08fc3a2dc FIX when has not plan and not parent to get the plan
#041618
2020-10-01 15:40:06 +02:00
Bernat Brunet eedda16fde Update unit cost product plans lines are calculated. Take the parent plan for it 2020-03-30 01:04:25 +02:00
Bernat Brunet 1e0e8398f1 Fix material csot on the product cost plan. Take all the products, include the childs 2020-03-27 16:28:47 +01:00
Raimon Esteve 93554d10d0 Locales 2020-03-20 12:16:00 +01:00
Àngel Àlvarez 591dfb672d fix duplicated lines 2020-03-12 14:16:06 +01:00
Àngel Àlvarez 72928f1331 Make plan not required on product lines, and creat function to return all products to create bom correctly 2020-03-11 11:42:43 +01:00
Juanjo Garcia 65de0b1da5 Add missing res.user.warning dependency. 2019-10-11 09:36:55 +02:00
Juanjo Garcia 78146822a5 Add Warning.check() to UserWarning. 2019-10-02 10:54:33 +02:00
?ngel ?lvarez 9b6597691f Add unique identifier and Warning.chekc for UserWarning 2019-05-04 22:34:37 +02:00
Raimon Esteve 995764416c Use tree mixin
issue7383
2019-05-03 13:33:44 +02:00
?ngel ?lvarez 0ce525babd Add ir.message and use UserWarning 2019-01-04 16:50:30 +01:00
Albert Cervera i Areny 98e6ca9157 Migrate to python 3. 2018-08-17 23:44:14 +02:00
?ngel ?lvarez 7a7bf0e23e fix in case sequence it's not defined 2018-04-25 16:06:46 +02:00
?ngel ?lvarez 8197b17013 update to 4.7 2018-04-25 15:44:48 +02:00
Sim? Albert i Beltran ca643dcc70 Fix the update of uom_digits on product change 2017-12-22 10:53:51 +01:00
Sim? Albert i Beltran 28ce654fa3 Update product_cost_price on change product 2018-02-05 17:24:43 +01:00
Jes?s Mart?n Jim?nez f4ea891c57 Fix several on_change methods 2016-07-07 11:30:15 +02:00
Jes?s Mart?n Jim?nez aa104f07aa Fix AssertionError: Field method product.cost.plan.default_state for unknown field 2016-07-07 08:45:06 +02:00
Jes?s Mart?n Jim?nez 82d82542e5 Fix on_change_* methods 2016-07-05 13:24:19 +02:00
Jes?s Mart?n Jim?nez cf7a91ca8a Fix getting product price_decimal from config 2016-07-05 10:12:52 +02:00
Guillem Barba c3a4494da8 New extra dependency production_external_party 2015-06-26 12:04:39 +02:00
Guillem Barba 9eb8aae677 Allow different UoM in product lines with same product 2015-06-15 17:09:17 +02:00
Guillem Barba 9a8f5dc40c Add required flag to plan's name 2015-05-28 10:48:29 +02:00
Guillem Barba cbdaffe6ac Fix get attribute of None product on on_change_produt 2015-04-26 22:58:46 +02:00
Guillem Barba b1168fe527 Set system and internal_cost fields correctly in get_cost_line_vals and improve readability 2015-04-17 15:38:46 +02:00
Guillem Barba e10bfa62b4 Allow to set cost price to 0 in product lines 2015-04-15 19:44:59 +02:00
Guillem Barba 25c244456e Fix bug in on_change_with_uom_category introduced in last commit 2015-04-13 13:25:01 +02:00
Guillem Barba c3fabe8c97 Fix None object access in on_change_with_uom_category() 2015-04-13 10:17:53 +02:00
Guillem Barba 51a27e2140 Add product's cost price to plan form, add confirmation message 2015-02-06 09:52:05 +01:00
Guillem Barba 7affa7ac0d Show warning instead of error if process already exists in plan 2015-02-06 09:19:29 +01:00
Albert Cervera i Areny 3e1c35b575 Replace tabs with spaces. 2015-02-03 14:10:26 +01:00
Albert Cervera i Areny 4fc9a0824c Add check_recursion to product.cost.plan.product.line. 2015-01-28 14:36:19 +01:00
Guillem Barba db2ba21701 Check if plan has product when create bom. Improved plan's rec name 2015-01-27 09:52:03 +01:00