Commit Graph
21 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 4735616a20 Use deactivable mixin
issue4341
review38401002
2018-03-26 14:11:26 +02:00
Cédric Krier dd23fd2ef3 Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:30 +02:00
Cédric Krier fd1aa84921 Ensure rec_name is a char, text type
Model.default_get with 'default_rec_name' context relies on the fact that
rec_name is a string base field.

issue6630
review36501002
2017-07-26 23:43:23 +02:00
Cédric Krier 367f018f17 Allow None as quantity in the input/output domain
Because the domain is evaluated by the client when creating a new record, it
should be valid with the default value otherwise the focus is put automatically
to the invalid field. So the quantity domain must allow None as value to not
get the focus.

issue6422
review37321002
2017-04-21 10:20:50 +02:00
Cédric Krier 6dce79287b Ceil input and floor output quantities
This is a more realistic behaviour for a production.

issue2956
review33791002
2017-02-02 12:12:19 +01:00
Sergi Almacellas Abellana b238b0c64c Avoid reading all category uoms when testing uom.category
issue5982
review25761002
2016-10-28 09:54:17 +02:00
Sergi Almacellas Abellana b286b5d01a Validate product-boms relation when deleting bom outputs.
The bom output that contains the product used on production-bom defines on
which products the bom can be used so it can not be deleted if used on the
relation otherwise it invalidates the domain and causes domain validation
errors when creating productions from the stock_supply_production wizard.

issue5495
review18021002
2016-04-25 09:15:07 +02:00
Cédric Krier 779df5d70f Return rec_name of Many2One in BOM tree
issue5409
review16131002
2016-03-19 12:09:51 +01:00
Karla Stenger cc7372a2a7 Change Uom.round into an instance method.
issue4423
review20561002
2016-01-11 10:29:14 -03:00
Sergi Almacellas Abellana f249de1a30 Make production BOMTree readonly
issue5162
review16881002
2015-12-15 09:54:49 +01:00
Cédric Krier fbafc0fb8e Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:59:40 +02:00
David Harper 8334230240 change Ok to OK
issue4290
review15281002
2015-03-10 18:42:41 +01:00
Cédric Krier 4bf2f3c373 Fix most flake8 errors
review8771002
2014-12-02 12:55:39 +01:00
Cédric Krier 6095792400 New API for on_change
issue4203
review8581002
2014-10-29 20:40:02 +01:00
Sergi Almacellas Abellana 295fe5f674 Add domain to ensure that bom inputs/outputs quantity is greather than zero
issue4055
review13411002
2014-07-24 12:47:04 +02:00
Sergi Almacellas Abellana 6224bbe8ee Fix zero division error on Bom inputs/outputs
issue4055
review13411002
2014-07-24 12:40:21 +02:00
Cédric Krier 7c382c5e7c Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:24 +01:00
Sergi Almacellas Abellana 5d5910e9c0 Add ondelete cascade to bom inputs and outputs
issue3450
review1471002
2013-11-02 12:34:56 +01:00
Albert Cervera i Areny 166b583ade Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:39 +01:00
Albert Cervera i Areny d61dd0d7bd Active Record 2012-09-24 22:12:50 +02:00
Cédric Krier 390b061559 Initial commit of production module 2012-05-13 23:00:54 +02:00