Commit Graph
49 Commits
Author SHA1 Message Date
Cédric Krier f790858518 Add validate_fields to ModelStorage
issue11303
review386191002
2022-04-11 23:24:21 +02:00
Nicolas Évrard 97503fd16b Send only the required fields when fetching a readonly view definition
issue11134
review380081002
2022-04-08 19:07:13 +02:00
Cédric Krier f7621602f3 Ensure to set correct company context when calling today
issue11046
review370421002
2022-01-23 12:54:56 +01:00
Cédric Krier 54f132fdd6 Follow isort formatting
issue10928
2021-12-11 17:58:42 +01:00
David Blanco Bautista 2f2300cbbd Allow creating commission invoices for specific agents
issue10817
review373681002
2021-10-09 00:38:28 +02:00
Cédric Krier d259cb97d5 Avoid saving invoice and line in loop
issue3516
review12931002
2021-10-08 19:23:27 +02:00
Sergi Almacellas Abellana ea9919d5e4 Instantiate invoice product with agent company
issue10544
review363501006
2021-09-13 09:30:41 +02:00
Cédric Krier 20354e564b Add monetary field
issue10598
review338511002
2021-08-21 09:09:55 +02:00
Cédric Krier 892c583f8d Remove unused import 2021-07-24 09:42:06 +02:00
Cédric Krier 25883d7a7c Add reporting
issue10397
review342321002
2021-06-11 00:17:19 +02:00
Cédric Krier 033d724994 Use data res_id instead of modifying action domain
issue10471
review358151003
2021-06-06 09:37:26 +02:00
Cédric Krier 91eb0337df Use agent access for selection access
issue10456
review365381002
2021-05-26 23:51:13 +02:00
Cédric Krier f3f857c718 Limit commission access to agent access
issue10391
review359661002
2021-05-26 23:49:30 +02:00
Cédric Krier 6e8aa81de5 Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
2021-04-10 23:46:23 +02:00
Cédric Krier 871fca67d1 Enforce access rights when searching in wizard
If there are no constraint based on the records on the search domain, we must
enforce the access rights to limit the execution to the user accesses.

issue10229
review335931002
2021-04-05 15:15:39 +02:00
Cédric Krier a614c84dcc Replace cursor fetchall by iteration over cursor
issue5817
review335831003
2021-03-21 16:09:13 +01:00
Cédric Krier 17bab9a116 Add __access__ to Model
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier 74d5f641ec Use cache to fill Reference selections
issue9235
review335301003
2020-12-27 00:19:30 +01:00
Cédric Krier 03df849788 Enforce currency, invoice_type and party values between invoice and lines
The currency of an invoice line must always be the same as the invoice.
For the invoice_type and party they must be the same only if set.

issue9854
review324581002
2020-12-16 21:24:07 +01:00
Sergi Almacellas Abellana d7e373a79b Add employee on agent selection
issue9219
review289701002
2020-06-07 12:24:55 +02:00
David Harper d0ff0bedcb Rename invoice state from cancel to cancelled
issue8927
review303661003
2020-06-06 10:23:14 +01:00
Cédric Krier 30cd6e4cf9 Add round_price
We add a common method to round prices that are stored using the price digits.
It is useless to use the digits from the field because it can not be changed in
any other way than by configuration.

issue9146
review299521002
2020-04-23 21:44:00 +02:00
Sergi Almacellas Abellana f83ad25791 Make currency required on agent
issue8751
review319201002
2020-04-20 14:03:27 +02:00
Sergi Almacellas Abellana 73439d86b0 Add help text
issue7233
review39231002
2020-04-13 17:35:36 +02:00
Cédric Krier 3578bc530f 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:52 +01:00
Sergi Almacellas Abellana 1129066640 Add Agent selection
issue8654
review260131002
2020-02-24 18:38:48 +01:00
Sergi Almacellas Abellana a957ad417b Add missing end dot on translatable strings
issue8670
review252211037
2019-09-30 09:39:11 +02:00
Cédric Krier 3edd39bf37 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier 5a7ebf508a 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:03 +02:00
Cédric Krier bdf49da27f Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:46 +02:00
Cédric Krier de4fad6fc8 Match also with parent categories
issue7133
review43991002
2018-03-04 01:07:49 +01:00
Sergi Almacellas Abellana c2542c966d Add depends on Button
issue6919
review40811002
2018-02-19 11:38:40 +01:00
Sergi Almacellas Abellana aacbd0ca8c Use all categories for matching lines
issue6881
review41631002
2017-10-27 13:19:36 +02:00
Sergi Almacellas Abellana 99a59074c1 Use used properties for account payable and receivable
issue6561
review40531003
2017-09-28 10:16:17 +02:00
Cédric Krier 5151ecfe29 Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:28 +02:00
Sergi Almacellas Abellana 40194dfb9a Don't match product and category lines when product is empty
issue6501
review37391002
2017-05-23 10:28:31 +02:00
Sergi Almacellas Abellana bb3b2c7d86 Add category as plan matching criteria
issue6322
review33161002
2017-03-17 10:08:45 +01:00
Sergi Almacellas Abellana ca5e18c0ac Add ondelete cascade to plan lines product
Otherwise the product is set to null and the resulting plan line
matches all the products

issue6358
review33181002
2017-03-14 10:43:25 +01:00
Xavier Codinas 89fbbb56a2 Fix domain in invoices wizard date fields
issue6088
review25851002
2016-12-01 13:37:54 +01:00
Sergi Almacellas Abellana f09c12b036 Use sequence_ordered
issue5105
2016-09-13 14:05:58 +02:00
Cédric Krier f78c981f45 Merge invoice and credit note
issue5225
review18921002
2016-03-20 22:58:54 +01:00
Cédric Krier 41c9de5bd2 Follow PEP-0249 for Transaction and backends
issue4949
2016-03-04 09:42:24 +01:00
Sergi Almacellas Abellana 82b88c2a6a Use commission product from agent's plan if defined
issue4834
review8191002
2015-07-31 11:30:33 +02:00
Cédric Krier 909a67a15d Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:58:16 +02:00
Cédric Krier d247cd8995 Avoid using private invoice line method but use on_change
With the new on_change API, it is easier to use it instead of duplicate code
but the invoice must be set to work properly anyway.

issue4696
review8131002
2015-04-11 13:31:20 -04:00
Cédric Krier eeb45c244e Fix search_rec_name for negative operator
In case of negative operator, each subclause must be composed with 'AND'.

issue4559
review11171002
2015-04-05 23:39:10 +02:00
Raimon Esteve 85f9facdc5 Don't return invoices on button method
Replace it by reading commissions on the creation wizard for the opening action.

issue4555
review13981003
2015-02-13 09:16:00 +01:00
Cédric Krier c7a9746575 Use price_digits
issue4438
review6791002
2015-01-06 23:30:33 +01:00
Cédric Krier 8bcecbba16 Initial commit
review13641002
2014-12-19 12:14:20 +01:00