Raimon Esteve
de09fd56c3
Get payable or receivable payment type when on_change party from account_kind field
2019-11-20 09:54:50 +01:00
Albert Cervera i Areny
d1dca53b2b
Add _parent_move.id to several on_change_with methods.
2019-11-14 17:05:57 +01:00
Raimon Esteve
0327f5dc12
pyflakes
2019-05-24 16:03:01 +02:00
?ngel ?lvarez
8946b27fbe
Merge account kind and account type
2019-03-30 11:18:14 +01:00
?ngel ?lvarez
fbeebb720a
Add ir.message and use UserWarning/UserError
2019-01-06 08:09:04 +01:00
Albert Cervera i Areny
6c7d44fe19
Ensure check_access=False when checking owners because the user may not have
...
access to all models that need to be checked.
2019-01-03 17:32:05 +01:00
Raimon Esteve
3070c83e35
Return none where credit and debit is 0 in on_change_with_payment_type
2018-09-19 22:15:08 +02:00
Albert Cervera i Areny
e9110cb4ac
FIX Invoice process with duplicated invoices from same move origin (delete)
2018-09-18 18:37:48 +02:00
Raimon Esteve
f1ecc37bed
Add on_change_with_payment_type methods in account.move.line and account.move.compensation_move.start that doesn't exist
...
From changeset-3d185c0f089f
2018-09-10 16:44:22 +02:00
Raimon Esteve
a881707765
Revert remove bank_account from Account Move Lines
...
From changeset-08095bcad47f
2018-09-10 15:11:13 +02:00
Raimon Esteve
874a13e331
Add 'Description' field in compensation move line wizard, to add a description in the new move created
...
From changeset-be2c815a8035
2018-09-06 14:50:17 +02:00
Albert Cervera i Areny
6b1f636502
FIX Invoice process with duplicated invoices from same move origin
...
task-035371
2018-09-06 13:51:22 +02:00
Albert Cervera i Areny
3bfc3a6018
Migrate to python 3.
2018-08-17 22:59:55 +02:00
Albert Cervera i Areny
d18aac08af
depends' methods must be a method name, not a field name.
2018-08-17 22:59:48 +02:00
Raimon Esteve
9dbb17a23a
FIX not set party payment type when the payment type in new record is different from default party payment type
...
Example: customer has payment type ID 1. An invoice, change default payment type to ID 2.
Bank Account has domain error when post an invoice because on_change_with reset to payment type ID 1
From changeset-b7b3d92
2018-02-15 12:09:20 +01:00
Raimon Esteve
67a58a241e
FIX scenario test
2017-12-22 16:24:12 +01:00
Raimon Esteve
cc83c00c86
Properly set default bank account value in invoices
...
From changeset-32dd6b09b778
2017-09-29 16:09:54 +02:00
Raimon Esteve
d71ae80784
FIX get Company from Transaction
2016-12-29 16:12:03 +01:00
Raimon Esteve
5c83d92e38
FIX typo modify_with_related_model
2016-12-29 16:09:10 +01:00
Raimon Esteve
ce1f780e9d
Upgrade from 4.2
2016-12-29 15:41:33 +01:00
Sergi Almacellas Abellana
3c81c91190
Ensure correct bank_account is set when changing payment type
...
Also use correct values on payment model
2016-12-22 15:12:10 +01:00
Sergi Almacellas Abellana
50ae12fed5
Fix test scenario on python3
...
- Prevent declaring nested dependencies on depends fields
- Avoid usage of hasattr on on_change (field will be ensured by decorator)
- Change order of tests scenarios: Don't know why but the account_bank
scenario is failing if executed before the compensation move one.
2016-12-21 17:05:11 +01:00
Sergi Almacellas Abellana
1df40a0ba3
Check account payment when modifying the bank account owner
2016-12-14 12:44:16 +01:00
Sergi Almacellas Abellana
1d48af4e36
Allow to modify the bank account when payment type is of other kind
2016-12-13 15:54:52 +01:00
Sergi Almacellas Abellana
93a820f514
Remove catalan words from modify with related model error message
2016-12-13 15:11:10 +01:00
Sergi Almacellas Abellana
820ecc785c
Add payment_type as filter of default bank accounts
...
Also remove the bank account of payment_type as this can now be managed by
the bank accounts of the party
2016-12-13 14:54:29 +01:00
Sergi Almacellas Abellana
3a0a9d56c6
Remove unused error message
2016-11-21 12:26:59 +01:00
Raimon Esteve
15d2591bdb
Remove duplicated query
2016-11-13 17:46:33 +01:00
Sergi Almacellas Abellana
7145fb7183
Fix some flake8 errors
2016-11-11 17:38:49 +01:00
Sergi Almacellas Abellana
7d18720317
Use python-sql for computing queries
2016-11-11 17:36:52 +01:00
Albert Cervera i Areny
b2f6be0584
Do not override invoice's get_lines_to_pay.
...
We were overriding this method so that when invoice lines were reconciled to
create line lines to pay, the latter were used. This was implemented because we
wanted to implement a basic workflow were just after the invoice was created,
new moves were created if the payment type was Direct Debit. As we're not going
to implement it anyway, this code is useless and confuses users.
2016-09-13 13:03:46 +02:00
Jes?s Mart?n Jim?nez
301693280e
Follow PEP-0249 for Transaction and backends
2016-08-18 10:04:22 +02:00
Sergi Almacellas Abellana
dbf7e17fe0
Fix invalid syntax and test scenario
2016-08-11 13:09:52 +02:00
Albert Cervera i Areny
8b6a5e8ee3
Allow searching potential moves for netting.
...
(grafted from f61e08329ae83eb057d5dcf30b2f8cdaf04a2ee5)
2016-08-10 17:17:52 +02:00
Albert Cervera i Areny
b1523ac0dd
Merge.
2016-08-10 02:25:07 +02:00
Albert Cervera i Areny
e1c21b725b
In compensation wizard, support mixing lines of several accounts of the same
...
partner.
(grafted from f2bb2b1ef8f37f7b9ba9464812512e8935b90c4c)
2016-08-10 02:22:41 +02:00
Sergi Almacellas Abellana
38a1d6cd87
Remove bank account from account move line
2016-07-28 16:58:22 +02:00
Sergi Almacellas Abellana
2f2ca55fe0
Fix default bank account computation
...
Also return the company default bank account if there is no company one
defined for the party
This is a regression introduced in changesetdbe3cd191a22
2016-07-27 14:15:35 +02:00
Sergi Almacellas Abellana
968835dbb5
Fix bank_account on change when changing payment_type via on_change_with
2016-07-01 14:56:01 +02:00
Albert Cervera i Areny
dcbe271d81
Revert changes on _get_move_line() because API has NOT changed.
2016-04-14 23:56:35 +02:00
Guillem Barba
5b0f0af214
PEP8 formatting
2016-04-11 15:10:07 +02:00
jmartin
def433baa8
Merge invoice and credit note
2016-03-29 17:29:44 +02:00
jmartin
14475d57da
Add python 3 support
2016-03-29 11:43:10 +02:00
jmartin
531af63098
Follow PEP-0249 for Transaction and backends
2016-03-10 13:34:38 +01:00
Sergi Almacellas Abellana
59d2ac08c1
Use account_bank from to check if bank_accounts are used on related records
...
(grafted from 8867cadb4293ea2e31bca930a9e6352fc65fa630)
2016-02-18 14:54:10 +01:00
resteve
3a01ca8696
Select other bank account and not reload default party bank account
2016-02-10 19:38:52 +01:00
resteve
7be459c55c
Change label account_bank to Account Bank Kind
...
Some locales are same translations about Account Bank and Bank Account
2016-02-10 16:22:13 +01:00
Sergi Almacellas Abellana
651f33dfc1
Prevent deletion of bank accounts used on move lines
...
(grafted from 9e828a9ab2313486e324a1b3015403083335c2e6)
2016-02-05 10:52:23 +01:00
resteve
55a7b232fa
FIX return bank account from party or company
...
Since dbe3cd191a2205ef4c9cbcdda87b8d95ac9a9274 return bank account from company (not party)
2015-12-30 22:37:29 +01:00
resteve
94b44d244b
FIX paramertes call _get_bank_account on change party
2015-12-02 14:09:39 +01:00