Cédric Krier
996ceffb64
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:27 +02:00
Cédric Krier
f84a891925
Remove contextual domain on company
...
issue10302
review338141004
2021-04-20 09:18:57 +02:00
Sergi Almacellas Abellana
8d61e68c0b
Do read amount value inside subtotal computation
...
The field can not be used because the server will read the values of all lines
in the invoice and cause a recursion error
issue10284
review363151002
2021-04-15 10:10:55 +02:00
Sergi Almacellas Abellana
b4fc821f8b
Allow using debt accounts on supplier invoices
...
issue10164
review357341003
2021-04-11 20:52:21 +02:00
Cédric Krier
913130c04f
Add deductible rate of taxes to supplier invoice
...
issue6911
review341801002
2021-04-11 18:11:05 +02:00
Cédric Krier
7ed72c1d11
Add missing company in depends of _get_tax_context
2021-04-11 18:08:27 +02:00
Nicolas Évrard
f814d45066
Call super() method of view_attributes
...
issue10151
review349551002
2021-04-09 10:52:03 +02:00
Cédric Krier
d35bf53b50
Add company pattern to multivalue calls
...
issue10162
review335761002
2021-04-03 14:27:10 +02:00
Cédric Krier
abc50a0c83
Use the queue to process reconciled invoices
...
We add a process button for account admin to allow the user to force the
process in case the queued task has failed.
issue10215
review361451002
2021-03-28 16:22:01 +02:00
Cédric Krier
183d788303
Replace cursor fetchall by iteration over cursor
...
issue5817
review335831003
2021-03-21 16:09:13 +01:00
Cédric Krier
6d5d2470da
Store directly sequence type to sequence
...
issue10122
review351381002
2021-03-11 23:00:09 +01:00
Cédric Krier
e9d9721435
Add __access__ to Model
...
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier
3d58e7d45e
Add test on context of company multivalue target fields
...
issue10067
review333851026
2021-03-05 15:49:19 +01:00
Cédric Krier
e1f2871c3b
Add method to post invoices by batch
...
issue10054
review333811002
2021-02-27 15:23:46 +01:00
David Harper
7c1efcb8a4
Make invoice required for invoice tax
...
issue10111
review339931002
2021-02-26 15:41:50 +00:00
Cédric Krier
9ad98c25d4
Add header grouping on report
...
issue6760
review351221002
2021-02-21 19:19:26 +01:00
Cédric Krier
72ad0f5124
Show last invoice in numbering error
...
issue10075
review333881002
2021-02-14 15:51:51 +01:00
Cédric Krier
a6c6c3b5ab
Order with nulls first
...
issue10078
review331831002
2021-02-14 15:48:44 +01:00
Cédric Krier
fb46338b22
Update unit price after invoice posted and move done
...
issue9962
review292991002
2021-02-03 21:21:03 +01:00
Sergi Almacellas Abellana
de0b29b7bf
Add payment term date in invoice
...
issue9956
review292961002
2021-01-28 11:01:11 +01:00
Cédric Krier
cb0e0d04e5
Drop foreign key for sequence
...
When updating twice the same invoice, PostgreSQL takes a shared lock on the
foreign key row of ir.sequence.strict. This prevent the sequence to be used for
numbering during all the transaction.
As some processes may write twice on an invoice due to modularity and as they
can last too long, it is better to avoid such lock by removing the foreign key
constraint. Storing the sequence id on the invoice is only to ensure sequential
numbering not the integrity of the sequence record.
issue9822
review331161002
2021-01-13 00:40:53 +01:00
Cédric Krier
c4c8ecad6b
Use cache to fill Reference selections
...
issue9235
review335301003
2020-12-27 00:19:30 +01:00
Maxime Richez
62c3f2c000
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
1062a7bebb
Add default customer payment term configuration
...
issue9855
review318881002
2020-12-23 21:46:51 +01:00
Cédric Krier
1f91408356
Ensure party_lang on invoice line has always a correct value
...
It is better for modularity to put the invoice parent test in the getter of
party_lang than having the test in the PYSON expression.
issue9897
review324591011
2020-12-18 00:28:25 +01:00
Cédric Krier
cb0e64a950
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
0b91262832
Allow to extend invoice's journal type
...
issue5175
review314451002
2020-10-12 13:02:30 +02:00
Abraham Cabezas
c6481ee9d5
Add domain to invoice's journal
...
issue5175
review310491002
2020-10-11 13:02:20 +02:00
Sergey Datsevich
293215a3ae
Update taxes only if base changed when currency is empty
...
The test is_zero is inverted when there is no currency defined.
issue9555
review318111003
2020-10-09 22:01:50 +02:00
Cédric Krier
8ce8293e05
Add symbol widget
...
issue9059
review276871002
2020-10-09 19:09:05 +02:00
Cédric Krier
a62f9d6672
Remove custom naming from invoice report
...
issue9509
2020-09-24 10:29:09 +02:00
Cédric Krier
3db3dff24d
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
Cédric Krier
01b0a5895e
Add start/end date to tax rule line
...
issue9505
review317981002
2020-09-05 22:12:11 +02:00
Abraham Cabezas
a852e2d51d
Convert Invoice.update_taxes into dualmethod
...
issue5334
review294221003
2020-07-29 22:51:13 +02:00
Cédric Krier
e88fa09cde
Clear invoice_report_cache_id on copy
...
It must be cleared like invoice_report_cache in case file_id is configured.
issue9476
review321801002
2020-07-13 20:57:00 +02:00
Cédric Krier
2782ab96fa
Add model, record and records attribute on Wizard
...
issue9421
review309861012
2020-07-07 23:56:09 +02:00
Cédric Krier
987cd0dd9e
Add with agent option to credit invoice
...
We do not always want to keep the agent on the credit note.
issue9407
review301791002
2020-06-24 23:00:48 +02:00
David Harper
6af900b817
Rename invoice state from cancel to cancelled
...
issue8927
review303661003
2020-06-06 10:23:14 +01:00
Sergi Almacellas Abellana
8e0534acc0
Add company as product context field
...
issue9111
review275031002
2020-04-25 09:18:06 +02:00
Cédric Krier
6b68d42c89
Allow overpaying invoice
...
issue9070
review263001009
2020-04-10 18:40:26 +02:00
Sergi Almacellas Abellana
406de7bb0c
Add default invoice state on tax lines
...
issue9176
review295221002
2020-03-30 09:58:20 +02:00
Cédric Krier
e6b06cdbf7
Enforce the same category of UoM between invoice lines and origin
...
The origin lines compute the remaining quantity by converting the move quantity
to the origin unit. So they must have the same category of UoM.
issue9142
review285011002
2020-03-17 23:26:58 +01:00
Cédric Krier
6d6528f0ad
Extract sequence field computation from get_next_number
...
This eases the customization of the sequence used.
issue9038
review270931002
2020-03-06 23:50:37 +01:00
Cédric Krier
4a128dab38
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:51 +01:00
Cédric Krier
7775bf346a
Use depends on TaxableMixin
...
issue8986
review282751002
2020-02-12 00:19:27 +01:00
Cédric Krier
ecfa49c8c9
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
94503a41df
Add invoice date on credit wizard
...
issue8925
review264931002
2020-01-24 00:23:28 +01:00
Cédric Krier
d0ab1eca5e
Add domain against closed account
...
issue8917
review262641002
2019-12-28 17:48:50 +01:00
Sergi Almacellas Abellana
eb70b0a665
Consider also invoices with zero lines as credit notes
...
issue8943
review284621002
2019-12-24 17:42:56 +01:00
Sergi Almacellas Abellana
9c01689f66
Clear invoice report language only for rendering
...
Otherwise the report name is rendered always in english
issue8881
review260621002
2019-12-18 09:21:49 +01:00