Cédric Krier
14bb7731be
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
Cédric Krier
58fab6157a
Do not use existing move dates to plan new moves
...
issue10126
review357821004
2021-04-21 23:45:25 +02:00
Cédric Krier
c704796999
Remove contextual domain on company
...
issue10302
review338141004
2021-04-20 09:18:58 +02:00
Cédric Krier
a2eca43fc7
Add deductible rate of taxes to supplier invoice
...
issue6911
review341801002
2021-04-11 18:11:05 +02:00
Nicolas Évrard
0f62b5cf5d
Call super() method of view_attributes
...
issue10151
review349551002
2021-04-09 10:52:03 +02:00
Adrià Tarroja Caubet
2a6616a44b
Clear employee fields on copy
...
issue10209
review357511002
2021-04-05 16:24:13 +02:00
Cédric Krier
3c3a3835bc
Use explicit list of product types for stock move
...
issue10225
review361481002
2021-04-03 23:30:21 +02:00
Cédric Krier
abbe1bdeb7
Add company pattern to multivalue calls
...
issue10162
review335761002
2021-04-03 14:27:10 +02:00
Sergi Almacellas Abellana
eba8d6826a
Add origin and set on returned purchase
...
issue4050
review335851002
2021-03-27 21:21:33 +01:00
Cédric Krier
ea89abb8da
Fallback to untaxed amount in PYSON expression about non-empty lines
...
issue10210
review347991002
2021-03-23 23:53:31 +01:00
Xavier
50ed519bf9
Do not recompute unit price when changing taxes
...
issue6837
review294921002
2021-03-23 23:51:44 +01:00
Cédric Krier
9376dbad61
Replace cursor fetchall by iteration over cursor
...
issue5817
review335831003
2021-03-21 16:09:13 +01:00
Cédric Krier
200cb740e8
Store directly sequence type to sequence
...
issue10122
review351381002
2021-03-11 23:00:10 +01:00
Cédric Krier
e87df05817
Add __access__ to Model
...
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier
ff348a3642
Use wizard model class instead of Purchase in return wizard
...
issue10155
review355181002
2021-03-07 10:06:55 +01:00
Cédric Krier
a1d9f6c3f8
Add test on context of company multivalue target fields
...
issue10067
review333851026
2021-03-05 15:49:19 +01:00
Cédric Krier
9950fe06a8
Add header grouping on report
...
issue6760
review351221002
2021-02-21 19:19:26 +01:00
Cédric Krier
4b904b1b40
Order with nulls first
...
issue10078
review331831002
2021-02-14 15:48:44 +01:00
Sergi Almacellas Abellana
2693aaf66d
Add default lead time to supplier
...
issue9420
review3117710
2021-01-19 14:59:54 +01:00
Maxime Richez
992834e4bd
Add summary to line list
...
A function field summary is added which takes the first line of description
field. This is useful to identify line without product (only with description)
in the list.
issue9695
review292431002
2020-12-25 17:14:57 +01:00
Cédric Krier
5c72361525
Set payment term and invoice method from last party's purchases
...
issue9855
review318881002
2020-12-23 21:47:56 +01:00
Cédric Krier
a1b124b09b
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
Cédric Krier
3f79169814
Remove unused taxes dictionary
2020-11-15 18:16:31 +01:00
Cédric Krier
b44af7b1bf
Test purchase/sale is filled before using it
...
issue9770
review300771002
2020-10-30 00:10:37 +01:00
Cédric Krier
8b1d6acf3d
Add symbol widget
...
issue9059
review276871002
2020-10-09 19:09:05 +02:00
Sergi Almacellas Abellana
f1a1a61f61
Only update actual quantity when it has changed
...
issue9541
review294321002
2020-10-04 23:54:46 +02:00
Cédric Krier
71bdf9525e
Allow setting the tax date on taxable lines
...
We add a taxing date to the invoice line which allow overriding the value of
the invoice.
When crediting an invoice, the original tax date of each line is stored on the
credit line so the tax are computed the same way.
issue9520
review323791002
2020-09-05 23:37:58 +02:00
Sergey Datsevich
217c3e47cf
Reuse get_tax_amount in on_change_lines
...
issue9537
review312091002
2020-09-03 09:01:26 +02:00
Cédric Krier
a5d10e4f35
Use search context for product field on line
...
The context is only useful when searching product from line on the client.
So it is better to minimize the context to improve the caching.
issue9519
review310181002
2020-08-16 16:52:00 +02:00
Abraham Cabezas
844f940bdd
Convert Invoice.update_taxes into dualmethod
...
issue5334
review294221003
2020-07-29 22:51:13 +02:00
Cédric Krier
a86c6f0b91
Add model, record and records attribute on Wizard
...
issue9421
review309861012
2020-07-07 23:56:10 +02:00
Cédric Krier
9e6c394822
Enforce unit price on drop and customer return moves
...
Those values are interesting information for reporting or to compare with the
cost price.
issue9402
review327421002
2020-07-04 23:49:25 +02:00
David Harper
4496e844cd
Rename move state from cancel to cancelled
...
issue8927
review297851002
2020-06-06 10:30:11 +01:00
David Harper
c1bcb2148e
Rename invoice state from cancel to cancelled
...
issue8927
review303661003
2020-06-06 10:23:14 +01:00
David Harper
f52104fa5c
Rename purchase state from cancel to cancelled
...
issue8927
review305681002
2020-06-06 10:14:13 +01:00
Cédric Krier
10febf5c86
Add related_party in search context of secondary party
...
issue9333
review323301002
2020-05-19 19:01:46 +02:00
Sergi Almacellas Abellana
53245643b7
Add company as product context field
...
issue9111
review275031002
2020-04-25 09:18:21 +02:00
Cédric Krier
4dbbd20bd3
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
Cédric Krier
db5b621734
Add actual quantity on line
...
The actual quantity is computed once the order is processing. We take the
biggest quantity between the shipped and invoiced and ignore the cancelled.
issue9191
review319091002
2020-04-14 09:27:53 +02:00
Cédric Krier
7a52ce817a
Allow copying attachments and notes to created records
...
issue9154
review266971002
2020-04-13 17:25:02 +02:00
Albert Cunillera Benet
0c560c4e8a
Add return wizard
...
issue9049
review256631002
2020-04-12 09:15:06 +02:00
Cédric Krier
976ff7e1dc
Add employee on document for some states
...
issue8969
review276621002
2020-04-10 18:53:44 +02:00
Cédric Krier
05201e1476
Add contact and invoice party
...
issue8992
review274701003
2020-03-28 14:25:57 +01:00
Cédric Krier
7869121038
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
6cebf9e1bc
Use depends on TaxableMixin
...
issue8986
review282751002
2020-02-12 00:19:27 +01:00
Cédric Krier
091e3f5f7c
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
fecfe235f5
Count as quantity to invoice only moves that leave the source
...
issue8951
review266621003
2020-01-13 23:54:20 +01:00
Nicolas Évrard
0366e5b818
Use direct access to backend classes
...
issue8836
review258421002
2019-12-06 17:33:46 +01:00
Cédric Krier
6420c371b2
Display quantity in record name
...
issue8797
review274151002
2019-11-26 22:20:24 +01:00
Cédric Krier
ba2baf1dca
Use a fresh product instance to find best product supplier
...
This ensure to be able to read all the product suppliers.
issue8723
review284231002
2019-10-24 19:08:07 +02:00