Jared Esparza
|
7d0367eca0
|
Update on_change and on_change_with field depends | #157053
|
2023-05-17 13:58:23 +02:00 |
Raimon Esteve
|
31e48c0e0e
|
compute currency in case has sale
|
2022-11-25 16:36:18 +01:00 |
Raimon Esteve
|
42770e9503
|
Get currency from line to calculate cost_price
Allow compability to sale_line_standalone
|
2022-11-24 14:31:16 +01:00 |
Raimon Esteve
|
329f225650
|
Convert cost_price to sale currency
In case company has different currency that the sale,
cost_price require to convert the currency
#072156
|
2022-11-24 12:25:43 +01:00 |
Raimon Esteve
|
ac6cc708ba
|
not require quantize cost_price because price_digits is from the configuration
|
2022-10-15 20:12:38 +02:00 |
Juanjo Garcia
|
7715ff05fa
|
Add missing depends in on_change_with_margin_percent.
047405
|
2021-10-01 15:02:23 +02:00 |
Juanjo Garcia
|
bcf52d6f63
|
Fix on_change account_tax_included.
047405
|
2021-10-01 14:01:37 +02:00 |
Raimon Esteve
|
6b54b6bd89
|
Add monetary field
issue10598
|
2021-08-23 18:04:15 +02:00 |
Carlos G?lvez
|
f7afadf644
|
Correct on_change_with methods in which nothing was being returned
#038505
|
2019-08-06 14:01:11 +02:00 |
Albert Cervera i Areny
|
b372458b2e
|
Migrate to python 3.
|
2018-08-18 09:57:24 +02:00 |
Albert Cervera i Areny
|
2631a4ef5c
|
Use method names instead of field names in depends' method=.
|
2018-08-18 09:56:56 +02:00 |
C?dric Krier
|
dc1e5176d1
|
Fix style
|
2018-02-01 17:23:58 +01:00 |
Raimon Esteve
|
8c2b4a7523
|
Rename method get_cost/unit_price to get_margin_cost/unit_price
|
2017-03-24 07:56:24 +01:00 |
Raimon Esteve
|
f0e626ce7e
|
Allow calculate margin percentatge from unit or cost price
|
2017-03-23 23:21:22 +01:00 |
Sergi Almacellas Abellana
|
bc486922ef
|
Add missing depends sale_state in cost_price
|
2016-07-01 14:00:15 +02:00 |
Sergi Almacellas Abellana
|
d5614f167f
|
Manage readonly state on margin fields
Related to: https://bugs.tryton.org/issue5628
Now it's allowed to change the cost_price (so the margins are updated) on the
quotation state also.
|
2016-07-01 11:39:38 +02:00 |
??ngel ??lvarez
|
2aba2e4fb1
|
get digits from product configuration
|
2016-04-13 17:17:34 +02:00 |
jmartin
|
0ed7246e18
|
Add python 3 support
|
2016-03-29 12:00:38 +02:00 |
resteve
|
e0f94c8777
|
pyflakes
|
2015-12-01 18:44:54 +01:00 |
resteve
|
b25cfd5517
|
New API for on_change
|
2015-09-04 00:37:17 +02:00 |
resteve
|
51ecceb204
|
Use price_digits
issue4438
|
2015-08-11 23:46:21 +02:00 |
Sergi Almacellas Abellana
|
9b17e8f37a
|
Round cost_price to the correct number of digits
|
2015-07-29 17:13:33 +02:00 |
jmartin
|
20149a69bc
|
Computes percentage margin with the real cost price in order to have a coherent result
|
2015-05-21 11:07:02 +02:00 |
Sergi Almacellas Abellana
|
f03cdac228
|
Fix margin percent computation when no cost
|
2015-04-16 10:50:12 +02:00 |
resteve
|
e8a3388d49
|
Change Decimal 0.0 from string to int
|
2014-11-21 08:58:33 +01:00 |
resteve
|
4990265673
|
On Change Width Margin: calculate cost when qty is not null
|
2014-11-21 08:57:13 +01:00 |
?ngel ?lvarez
|
79b7016797
|
Add margin_percent fields to sale and sale line
|
2014-11-12 12:35:46 +01:00 |
Sergi Almacellas Abellana
|
6a86ba5cac
|
Migrate to version 3.4
|
2014-11-05 17:17:48 +01:00 |
Guillem Barba
|
1eedd5ab0b
|
Add compatibility with sale_discount and improve on_change_with_margin
|
2014-10-29 13:42:30 +01:00 |
resteve
|
3038842f0d
|
Change unit price 4 decimals to DIGITS from config
|
2014-10-28 13:15:06 +01:00 |
Jordi Esteve
|
b3472cd075
|
Compute sale margin subtotals
|
2014-08-30 15:16:39 +02:00 |
Jordi Esteve
|
f84eed597a
|
PEP8 fixes
|
2014-08-30 15:14:54 +02:00 |
jmartin
|
8311e518b7
|
Add all depends fields to on_change_product method of sale.line model
|
2014-07-02 09:09:49 +02:00 |
jmartin
|
3104e68ba3
|
Fix DeprecationWarning: on_change argument is deprecated, use the depends decorator
|
2014-05-26 15:31:31 +02:00 |
Jordi Esteve
|
d961faa56d
|
Changed file permissions to 664
|
2014-02-07 20:28:12 +01:00 |
resteve
|
3d88fcb259
|
pyflakes
|
2014-01-17 13:45:34 +01:00 |
resteve
|
f7ce583860
|
Sale line cost price. Remove required
|
2013-10-04 10:57:14 +02:00 |
resteve
|
37e4bd85a3
|
sale line: get margin depends amount and operation if self.amount
|
2013-10-03 11:55:55 +02:00 |
resteve
|
0b86ed0ec3
|
Get margin: amount from amount line
|
2013-10-01 18:01:00 +02:00 |
resteve
|
5cc73aa23f
|
pyflakes fixed
|
2013-04-26 15:00:04 +02:00 |
resteve
|
1c9ed09185
|
Active Record
|
2012-10-16 17:10:24 +02:00 |
resteve
|
d8d6433422
|
Initial release
|
2012-07-24 11:56:39 +02:00 |