Cédric Krier
c762768ebe
Use integer without grouping for year reporting
...
issue10731
review355501002
2021-09-26 23:04:22 +02:00
Cédric Krier
8db518f263
Provide digits from unit of measure
...
issue10677
review365801002
2021-08-30 00:27:13 +02:00
Cédric Krier
3be8dbb18e
Add monetary field
...
issue10598
review338511002
2021-08-21 09:09:56 +02:00
Cédric Krier
6aa942ced6
Prevent changing the company when party is set
...
As many fields are set using party which depends on the company context, the
company can not be changed once they are set.
issue10289
review332591002
2021-04-22 00:03:28 +02:00
Nicolas Évrard
a94845ff98
Call super() method of view_attributes
...
issue10151
review349551002
2021-04-09 10:52:03 +02:00
Adrià Tarroja Caubet
3c0b3cf0eb
Clear employee fields on copy
...
issue10209
review357511002
2021-04-05 16:24:13 +02:00
Cédric Krier
a931183a32
Add company pattern to multivalue calls
...
issue10162
review335761002
2021-04-03 14:27:10 +02:00
Cédric Krier
5d92401f3d
Replace cursor fetchall by iteration over cursor
...
issue5817
review335831003
2021-03-21 16:09:13 +01:00
Cédric Krier
91d4dd188b
Store directly sequence type to sequence
...
issue10122
review351381002
2021-03-11 23:00:10 +01:00
Cédric Krier
4a53d53b2b
Add __access__ to Model
...
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier
a8c4b88bc0
Add test on context of company multivalue target fields
...
issue10067
review333851026
2021-03-05 15:49:20 +01:00
David Harper
c356e0acc3
Rename sale state from cancel to cancelled
...
issue8927
review323391002
2020-06-06 10:04:28 +01:00
Cédric Krier
7271f0ea52
Allow copying attachments and notes to created records
...
issue9154
review266971002
2020-04-13 17:25:02 +02:00
Cédric Krier
df4631120d
Add employee on document for some states
...
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Cédric Krier
f0c7f02e5c
Add contact and invoice party
...
issue8992
review274701003
2020-03-28 14:25:57 +01:00
Cédric Krier
106cb0c7fc
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:53 +01:00
Cédric Krier
6c5591a443
Remove global variables used for field definitions
...
They give the false idea that they can be extended or reused which is not the
case.
issue8967
review252851012
2020-01-25 20:18:49 +01:00
Cédric Krier
0824922215
Display quantity in record name
...
issue8797
review274151002
2019-11-26 22:20:24 +01:00
Sergi Almacellas Abellana
7f52c20055
Add missing end dot on translatable strings
...
issue8670
review252211037
2019-09-30 09:39:42 +02:00
Cédric Krier
9542207ad3
Use ir.calendar.month in sale opportunity reports
...
issue8640
review280101002
2019-09-28 23:53:26 +02:00
Cédric Krier
5200014ea9
Add visual context on tree view
...
issue8562
review261951002
2019-09-20 11:47:15 +02:00
Cédric Krier
ce247057a8
Prevent assign unknown attributes on Model
...
by adding __slots__ on PoolMeta
issue8567
review254091002
2019-09-07 23:45:08 +02:00
Cédric Krier
2e09a98398
Ensure to set the same quantity and unit on sale line
...
The on_change_product calls may change the unit if it is not in the right
category. In such case, we want to raise an error message to the user instead
of silently change the unit and quantity.
issue8079
review279221004
2019-04-23 09:14:00 +02:00
Maxime Richez
5ba1f300fb
Remove required on description
...
Description field is used when creating the sale but not required for this model.
So required constraint seems unnecessary.
issue8092
review68491002
2019-03-22 11:12:06 +01:00
Cédric Krier
86b6a609ff
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
Maxime Richez
24e039d14f
Add missing required, select and on delete CASCADE on line's opportunity
...
issue7767
review66431002
2018-10-05 17:26:48 +02:00
Cédric Krier
3b7918db5c
Improve ModelStorage.copy
...
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default
issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Cédric Krier
9ed0de14ec
Use material design icons
...
issue474
review60291002
2018-08-19 20:02:58 +02:00
Cédric Krier
3069679c04
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier
ff3f4bd990
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
7d7a4ed7f1
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:53 +02:00
Cédric Krier
7a81445057
Always raise exception in table handler
...
issue7175
review40161002
2018-03-15 00:46:40 +01:00
Sergi Almacellas Abellana
6cafd9efbf
Add depends on Button
...
issue6919
review40811002
2018-02-19 11:40:49 +01:00
Cédric Krier
b01ca4d66c
Fix searcher methods for dot notation
...
issue6757
review40651002
2017-09-27 18:37:32 +02:00
Cédric Krier
301db70546
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:26 +02:00
Sergi Almacellas Abellana
0ce736107a
Compute rates as ratio
...
- Use factor to represent the percentage
issue6195
review29941002
2017-01-26 09:34:35 +01:00
Sergi Almacellas Abellana
4170ee012d
Make Opportunity employee not required
...
issue6135
review29871002
2017-01-18 09:57:00 +01:00
Sergi Almacellas Abellana
f755219855
Avoid reading all category uoms when testing uom.category
...
issue5982
review30701002
2016-10-28 09:55:45 +02:00
Xavier Codinas
b2e4d2b754
Simplify default employee
...
issue4793
review33351002
2016-09-22 12:25:16 +02:00
Sergi Almacellas Abellana
6e0a8f188e
Use sequence_ordered
...
issue5105
2016-09-13 14:09:46 +02:00
Xavier Codinas
870a15d85f
Drop check percentage constraint before probability column
...
The problem was introduced in changeset 6c9049554e91
If the column is dropped before the constraint on some backend like PostgreSQL,
the constraint is automatically dropped which makes the drop statement fails
after.
issue4560
review31501002
2016-09-06 11:19:51 +02:00
Xavier Codinas
f7e2447146
Change probability into conversion probability
...
issue4560
review28701002
2016-09-02 11:08:14 +02:00
Cédric Krier
900a8ae064
Manage readonly state on Opportunity Line
...
issue5628
review27371002
2016-06-30 18:53:13 +02:00
Sergi Almacellas Abellana
684a0eed70
Use context model in Opportunities per Employee
...
issue5626
review23201002
2016-06-14 09:04:58 +02:00
Cédric Krier
a3597a3398
Naming convention for code, number and reference
...
issue1479
review17171002
2016-03-28 10:33:56 +02:00
Nicolas Évrard
45ed1acdd1
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:55:34 +01:00
Cédric Krier
69d7de4aab
Replace history by revision on client
...
There is no need to use a custom Model to show history of record since client
manage revision of any historized model.
issue5020
review16711002
2015-11-10 13:07:11 +01:00
Cédric Krier
e4ce7b49e7
Append 1 second to history date
...
As microsecond is removed, it must ensure that the date will always be after
the timestamp to get the lines read.
issue5020
review18691002
2015-10-15 00:55:03 +02:00
Cédric Krier
00228c7862
Remove boolean expression in order
...
issue4852
review15541002
2015-07-13 23:58:50 +02:00
Cédric Krier
3b919720c4
Put the right origin in migration from 3.4
...
The origin of the sale must be a reference to the opportunity.
issue4853
review16411002
2015-07-09 15:33:59 +02:00