Commit Graph
284 Commits
Author SHA1 Message Date
Cédric Krier ba5824c138 Round quantity before using it on invoice line or stock move
Precision can be lost also with only addition and substraction because of
float, so quantity must be rounded before used on invoice line or stock move.

issue4191
review13551002
2014-09-30 09:44:28 +02:00
Cédric Krier 5c1b1ad900 Add Tax rounding configuration
issue4106
review11401002
2014-09-17 22:20:03 +02:00
Cédric Krier b74141de1b Add pre_validate to quote button
issue4121
review11481002
2014-09-17 22:07:37 +02:00
Cédric Krier 8e61ceca6b Use context to check model and field access
issue4081
review8481002
2014-09-17 21:45:46 +02:00
Cédric Krier aeadbc05d1 Re-use on_change_with_amount in get_amount
issue4167
review5591002
2014-09-13 15:25:04 +02:00
Robin Baumgartner cca6f24d1e Make payment term optional in draft and quotation states
issue3388
review10421002
2014-07-14 11:39:10 +02:00
Nicolas Évrard f6b9c8f699 Make party readonly in case there is lines
issue3942
review5321002
2014-07-11 18:17:46 +02:00
Nicolas Évrard 1c574acb8b Fix typo introduced in changeset 4ea0da2747b1 2014-07-03 18:18:16 +02:00
Nicolas Évrard 094e275a09 Split confirmed state into confirmed and processing
issue3874
review7261002
2014-07-02 19:04:58 +02:00
Cédric Krier 931a3ef569 Compare quantity to unit rounding instead of zero
issue3965
review8391002
2014-06-09 18:05:59 +02:00
Cédric Krier 78a46734d4 Don't change currency when party changed if there are lines
issue3883
review8291002
2014-05-09 23:28:01 +02:00
Nicolas Évrard 147e83e05d Use correct name of recreated moves
issue3781
review4571002
2014-03-24 17:35:11 +01:00
Cédric Krier fe98d3ff39 Add link between stock moves and invoice lines
issue3614
review3181002
2014-03-18 21:13:18 +01:00
Cédric Krier 6a05a20933 Remove explicit link between purchase and invoice
issue3623
review4261002
2014-03-17 23:23:10 +01:00
Cédric Krier 9596c8c319 Be safer with the on_change using One2Many values
review4261002
2014-03-16 15:43:18 +01:00
Cédric Krier b277d95dab Improve sale mount computation and remove total from list view
issue3738
review3941005
2014-03-10 20:23:19 +01:00
Cédric Krier 5d91a0ff88 Fix arguments of missing_account_expense{,_property} error message
The error was introduced by the changeset 4edebebe71df
Thanks to Laurent Defert

issue3699
review3701002
2014-03-07 19:51:24 +01:00
Jordi Esteve 22fd0bdb43 Use OR clause in search_rec_name of purchases
issue3707
review3761002
2014-02-25 15:48:30 +01:00
Nicolas Évrard 29e761799e Allow transition from done to processing
review2351004
issue3564
2014-02-03 17:04:43 +01:00
Nicolas Évrard f0f1f23cab Add required states to invoice address
issue3574
review2541002
2014-01-26 17:32:45 +01:00
Cédric Krier ee986397f8 Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:28 +01:00
Cédric Krier 4d10a98509 Fix computation of done state for purchase and sale
Allow to go to done state when one sub-state is none and nothing was generated
for it.

issue3550
review2221002
2014-01-04 19:39:48 +01:00
Cédric Krier d9a0a91b80 Fix typo in error message sale -> purchase 2013-12-30 10:15:18 +01:00
Cédric Krier 253412a0c3 Fix usage of context company
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.

issue3394
review1119002
2013-10-09 18:25:44 +02:00
Cédric Krier efb5afb9ef Fix flake8 2013-10-05 12:17:17 +02:00
Cédric Krier 9fef34b041 Move code in right files following guide lines 2013-09-23 11:53:12 +02:00
Nicolas Évrard b7d05b3175 Replace reference copying by relate
review932002
2013-09-19 17:33:53 +02:00
Cédric Krier b2012b2237 Migration to python-sql
review1001002
2013-09-06 22:34:36 +02:00
Cédric Krier 01cf49cf1d Create invoice line for non-line only once
issue3292
review1043003
2013-09-02 11:21:19 +02:00
Cédric Krier 9f40c0238b Use absolute quantity to compute price
issue3309
review986003
2013-08-01 16:16:40 +02:00
Cédric Krier 8346f7df55 Use stock move worklow instead of overriding write
review902002
2013-06-01 00:12:50 +02:00
Cédric Krier 5274d22857 Use one getter for all amounts
issue2936
review897002
2013-06-01 00:02:18 +02:00
Cédric Krier 78246799fd Remove purchasable from context
issue2514
review887002
2013-05-27 18:08:48 +02:00
Cédric Krier 75dc2e07a0 Set invoice_type on invoice line
review860002
2013-05-18 00:15:01 +02:00
Cédric Krier 4f93c9471f Don't set delivery_date for negative quantity
review788002
2013-04-16 15:26:08 +02:00
Cédric Krier 564c86617b Avoid showing max date as delivery date
max date should be None on stock move

review769002
2013-04-08 23:51:02 +02:00
Udo Spallek b8aa852a5d Add missing Active Record migration.
issue3087
review740002
2013-03-25 21:04:18 +00:00
Cédric Krier a9deb9bd31 Use origin Reference on Invoice Line and Stock Move
issue2642
review717002
2013-03-23 15:39:11 +01:00
Cédric Krier 64c5bdb64e Remove _inherits
review670002
2013-03-20 22:51:02 +01:00
Albert Cervera i Areny bf33f2309d Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:48 +01:00
Cédric Krier c3076e0559 Purchase.process must be called with root
As process write on purchase, it must be called with root from stock models.

review667003
2013-03-06 17:24:45 +01:00
Cédric Krier 9144d1937a Fix flake8 2013-02-24 15:45:26 +01:00
Albert Cervera i Areny fd7fc10c85 Avoid double write in stock move creation.
review635005
issue2937
2013-01-16 02:01:46 +01:00
Albert Cervera i Areny e1d7c309f0 Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier c9f8528c1b Allow delivery_time to be None
review598007
2012-12-23 22:33:40 +01:00
Albert Cervera i Areny 222a6b4ad8 Update depends of incoming_moves field
issue2931
review615002
2012-12-16 23:47:42 +01:00
Cédric Krier a836c3fdb9 Add sale, purchase or other kind on Tax Rule and Tax Group
review587003
2012-12-05 13:02:31 +01:00
Cédric Krier e13a4bcdcd Store default language in database
review592004
2012-11-23 18:01:01 +01:00
Cédric Krier 37400bd213 Fix comment of compute_supply_date 2012-11-22 23:17:54 +01:00
Cédric Krier 60e481131b Change unit value earlier if needed in on_change_product
issue2761
2012-10-20 23:35:09 +02:00