Merge lp:~openerp-dev/openobject-addons/trunk-bug-787052-mma into lp:openobject-addons

Proposed by Mayur Maheshwari(OpenERP)
Status: Merged
Merged at revision: 5166
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-787052-mma
Merge into: lp:openobject-addons
Diff against target: 24 lines (+2/-1)
2 files modified
multi_company/multi_company_demo.xml (+1/-1)
purchase/purchase_sequence.xml (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-787052-mma
Reviewer Review Type Date Requested Status
Rucha (Open ERP) (community) Approve
Mayur Maheshwari(OpenERP) (community) Needs Resubmitting
qdp (OpenERP) Pending
Review via email: mp+64990@code.launchpad.net

Description of the change

Hello

    multi_company : Adding a file for a purchase order sequence and add a Demo Data for company
shop1 and shop2

    purchase : modified sql constraint

Thanks

To post a comment you must log in.
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

this seems not a proper fix as these changes are of purchase and in the dependency of this module (multi_company) there is no reference to purchase (though this fix doesn't break anything by traceback), so its good to fix the problem in purchase module itself,

- No need to change unique constraint of PO name (user can configure sequence so that its not conflicting with other names)

also this is not a good to refer company in data/update xml which is loaded in demo as it will give error of reference for the database without demo,

please improve it,
thanks

review: Needs Fixing
Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello

     I have made changes as per suggestion.

Thanks

review: Needs Resubmitting
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

> - No need to change unique constraint of PO name (user can configure sequence
> so that its not conflicting with other names)

this is still not improved

Remove demo data of purchase in multi_company module

thanks

review: Needs Fixing
Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello,

     I have removed a demo data and sql constraint

Thanks

review: Needs Resubmitting
Revision history for this message
Rucha (Open ERP) (rpa-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'multi_company/multi_company_demo.xml'
2--- multi_company/multi_company_demo.xml 2011-03-03 14:59:00 +0000
3+++ multi_company/multi_company_demo.xml 2011-08-30 06:55:39 +0000
4@@ -267,7 +267,7 @@
5 <field name="user_id" ref="base.user_root"/>
6 <field name="company_id" ref="res_company_oerp_in"/>
7 </record>
8-
9+
10 <record id="refund_expenses_journal_multi_in" model="account.journal">
11 <field name="name">Expenses Credit Notes Journal - (OpenERP IN)</field>
12 <field name="code">ECNJ-OpenERP IN</field>
13
14=== modified file 'purchase/purchase_sequence.xml'
15--- purchase/purchase_sequence.xml 2011-01-14 00:11:01 +0000
16+++ purchase/purchase_sequence.xml 2011-08-30 06:55:39 +0000
17@@ -11,6 +11,7 @@
18 <field name="code">purchase.order</field>
19 <field name="prefix">PO</field>
20 <field name="padding">5</field>
21+ <field name="company_id"></field>
22 </record>
23 </data>
24 </openerp>

Subscribers

People subscribed via source and target branches

to all changes: