Commit Graph
15 Commits
Author SHA1 Message Date
Goffin Simon ce162fae3e [FIX] account_analytic_default: Default analytic account in multi company
Steps to reproduce the bug:

- Set your user in multi company
- Set a default analytic account A for product P with your company
- Create a PO with P and deliver it
- Generate the invoice.

Bug:

The analytic account A was not set on the line.

opw:1831998
2018-04-03 16:09:01 +02:00
Laurent Smet d5d2a33424 [IMP] account_analytic_default: get the analytic acc. based on commercial_partner_id
The suggested analytic account must search based on the commercial_partner_id instead of
the partner_id field.

E.g. create an invoice with 'Agrolait, Thomas Passot', the analytic account 'Agrolait' wasn't set by default.

-github issue 21401
2018-02-28 13:32:18 +01:00
Pratima Gupta 011d6acbe9 [IMP] account_analytic_default: remove the stat button 'Analytic Rules' 2017-09-11 18:18:41 -07:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
qdp-odoo 4f29b77e3d [MERGE] foward port of 10.0 up to revision 84a650e33a 2016-12-30 17:21:25 +01:00
Christophe Simonis 0b846861b6 [MERGE] forward port branch 10.0 up to 5dc1c57 2016-12-01 17:05:08 +01:00
Christophe Simonis 7842498934 [MERGE] forward port branch 9.0 up to 5bed95f 2016-12-01 15:33:21 +01:00
Kinjal Mehta 8698307374 [IMP] account_analytic_default: select default product when creating analytic rule from product 2016-09-06 16:06:57 +02:00
Thibault Delavallée 4540b6595e [FIX] mrp, account_analytic_default: removed methods
When migrating stock, some dummies methods have been removed. Indeed those
calls make more problems than they solve by adding unnecessary complexity
around simple methods. However it seems some calls have been left in the
process :

 - _get_act_window_dict which is basically an env.ref or act_window.for_xml_id
 - _get_products which is basically having all product_ids from template by
   iterating on product_variant_ids.
2016-04-29 17:43:02 +02:00
Kinjal Mehta a57592abe4 [IMP] analytic: Replaced account_type field by active field
Currently there is a selection field 'account_type' on the
account.analytic.account model with 2 values : Active or Archived

Let's use an active field instead and add a Archive stat button on the
form. That way, we can remove all the domain ('account_type','=','normal')
which are implicit with the generic active field behavior
2016-03-23 16:35:34 +01:00
Mansi Trivedi 9931234e83 [FIX] product: wrong target on computed method
As in an api.multi call, should target template, not self.
Fixes traceback prone computed field
2016-02-05 13:47:49 +01:00
rap-odoo 9b38946529 [REF] account_analytic_default: migration to new API 2016-01-08 14:04:47 +01:00
rap-odoo 05a3e91487 [IMP] account_analytic_default: remove dead code
No longer called, removed in accounting refactoring
2016-01-08 13:56:35 +01:00
rap-odoo f51fd9ac8f [IMP] account_analytic_default: split files
KISS
2016-01-08 13:56:35 +01:00
rap-odoo 44d8e4b487 [REF] account_analytic_default: move files in proper folder 2016-01-08 13:56:35 +01:00