Raimon Esteve
0fc6972d08
Eval company or -1 in context m2o fields #163427
2023-11-16 09:27:22 +01:00
Raimon Esteve
3ae841f3ae
Allow customizing context per model for rule
...
Since tryton d87effab7bb
2023-11-02 13:41:26 +01:00
Albert Cervera i Areny
a9c359423e
Do not crash if companies list is empty.
2023-10-28 01:08:39 +02:00
Albert Cervera i Areny
fe0b5475b3
Do not crash if companies list is empty.
2023-10-28 00:55:15 +02:00
Raimon Esteve
219c7d4cc8
In case payment_kind is none, return account type
...
#162476
2023-10-26 15:09:08 +02:00
Jared Esparza
3a940f876c
Update account_bank in on_change_lines | #121258
2023-05-18 11:37:08 +02:00
Juanjo Garcia
158b03fd96
Fix search_netting_moves query.
...
Task #048598
2023-03-24 15:07:39 +01:00
Raimon Esteve
ac18f1c7a9
Get bank_account id in case _get_bank_account return bank_account
...
#157477
2023-03-13 11:50:12 +01:00
Sergio Morillo
b4c8eabde0
Fix setting second currency on counterpart line. ( #4 )
2023-01-11 16:26:00 +01:00
Raimon Esteve
3b5a5ba514
Use declarative index definition for ModelSQL
...
issue5757
2022-11-09 16:30:42 +01:00
Bernat Brunet
ad76803dbd
Fix bug on model Mixing. Ensure that 'company' attribute is in the model
...
before call.
2022-10-20 14:56:34 +02:00
Raimon Esteve
c2c814be1c
Allow process or paid invoices when is posted
...
add bank_account in _check_modify_exclude
2022-07-08 08:39:05 +02:00
Jared Esparza
2ce49df296
Fix last commit
2022-06-17 15:06:04 +02:00
Jared Esparza
c18002b811
Fix search_netting_moves grouping by company | #051514
2022-06-17 14:22:31 +02:00
Victor
44a49772cd
Fix _get_bank_account error case when account_bank is 'none'
2022-06-15 11:18:18 +02:00
Bernat Brunet
388bf6c310
Resolve multicompany problem in account move compensation wizard.
...
Task: #057567
2022-05-26 12:16:27 +02:00
juanjo-nan
9817675cb0
FIX _get_bank_account. ( #6 )
...
Delete on_change_with_bank_account functions in bank mixin, account.invoice and account.move.line.
Task #049621
2022-05-11 17:13:10 +02:00
Jared Esparza
abb0622318
Add company to context
2022-05-05 10:08:31 +02:00
Raimon Esteve
029ed6225a
Check rule only if _check_access is set and enforce companies rule
...
issue4080
2022-03-25 19:26:11 +01:00
Raimon Esteve
3483a1a910
netting_moves or debit and credit
...
#050002
2022-03-24 12:52:05 +01:00
Raimon Esteve
44ea8a93ef
FIX typo
2021-09-27 16:55:19 +02:00
Raimon Esteve
952321abef
Ensure that objects in the Pool has __slots__
...
issue10719
2021-09-27 13:20:32 +02:00
Albert Cervera i Areny
b4c19ff7fa
Fix different_parties message and its translations.
2021-03-29 19:33:38 +02:00
Juanjo Garcia
2126c49bec
FIX Tests
...
Move part of "def on_change_with_bank_account" in BankMixin to Invoice as "on_change_with_bank_account".
2020-11-23 10:55:40 +01:00
Juanjo Garcia
4e6108f5ea
Add missing depends
2020-10-20 18:34:53 +02:00
Albert Cervera i Areny
f75833c6d7
Only add depends of payment_type_kind field on invoices as other models don't have that field.
2020-07-09 00:50:45 +02:00
Sergi Almacellas Abellana
5df2547c8a
Add missing bank_account as depends
2020-04-06 16:27:58 +02:00
Bernat Brunet
bd2b9fc70a
Add field depend missing on on_change method
2020-03-31 15:13:05 +02:00
Bernat Brunet
6691be07fa
Fix bug when try to resolve an invoice problem on a Mix 'used' by mor classes than invoice
2020-03-25 11:47:36 +01:00
carlosgalvez-nan
ee0e65ba8f
Bank account doesn't change if the payment type remains the same
...
#040241
2020-03-18 11:13:58 +01:00
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