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
Cédric Krier
d346db0ee5
Fix OpenCustomer to not call browse with int
...
issue2837
review573002
2012-10-20 23:26:36 +02:00
Cédric Krier
687a58be2a
Use gettattr with default value in _get_context_purchase_price
...
Some fields from purchase could not be defined.
2012-10-19 19:30:27 +02:00
Cédric Krier
ce9aa1fc44
Fix test on to_recreate in invoice exception handling
2012-10-11 17:54:17 +02:00
Cédric Krier
81a0dbc4b1
Fix naming collison from AR migration
2012-10-11 17:53:41 +02:00
Cédric Krier
26e2f86828
Fix typo in on_change_party, it should use the instance instead of id
...
issue2822
2012-10-10 16:46:01 +02:00
Cédric Krier
15d3ba7fb2
Managage negative amounts in purchase
...
review354001
2012-09-30 21:19:45 +02:00
Cédric Krier
eeced05eec
Active Record
2012-09-24 22:18:09 +02:00
Cédric Krier
41ece280fb
Merge all kind of buttons
...
review483002
2012-09-10 15:28:28 +02:00
Cédric Krier
6eac20694a
Add missing purchase_date on some on_change
2012-09-04 22:56:49 +02:00
Cédric Krier
8d1ecc28bc
Ensure clause concatination works with tuple vs list
2012-09-04 22:56:05 +02:00
Cédric Krier
0b7c9afc5e
unit_price and quantity could be None during on_change calls
...
issue2740
2012-08-07 12:53:48 +02:00
Cédric Krier
0a94ba79ac
Remove required on sequence
...
review348001
2012-05-14 15:36:47 +02:00
Cédric Krier
a37d14cd14
Allow to reset to draft a cancelled purchase
...
review340004
2012-05-12 16:45:47 +02:00
Cédric Krier
70eac46c04
Fix manual invoice method and states of cancel button
...
review340004
2012-05-12 16:45:14 +02:00
Cédric Krier
36a817ae6c
Manage invoice line creation the same way as stock move
...
As the invoice and shipment are both managed in the process method. So it sum
all the quantity invoiced (even the canceled) with the exception of the one
already recreated.
review350001
2012-05-05 09:23:50 +02:00