c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #13042
[Bug 703875] Re: Make sale.order.line form view a real view
Hello Thibaut,
Thanks for your reply. The issue stated in your bug specification is not
the bug.
But in your case, problem can be solved using the xpath attribute of
XML.
You just need to inherit the Parent view which is in our case is form
view of sale order with the id="view_order_form" and then use the
expression of xpath for traversing in the view till you get the desired
view of order line.
Then customize that view according to your needs like you have stated
the rent order line.
You can take the reference for such customization in the
hr_payroll_account module's hr_payroll_account_view.xml (Line: 67). Hope
this will help you.
Thanks.
** Changed in: openobject-server
Status: New => Invalid
** Converted to question:
https://answers.launchpad.net/openobject-server/+question/141876
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/703875
Title:
Make sale.order.line form view a real view
Status in OpenObject Server:
Invalid
Bug description:
Currently, the sale.order.line form view (which is used in every
sale.order) is defined as a subview : directly inside its one2many
field. This is not a good thing because you ca't inherit/extend it
without have to inherit the sale.order form view.
Example :
If you want to create a rent.order.line model (which inherits
sale.ordeR.line), to manage rent orders, you can't use the view
defined for sale.order.line.
Fix proposal :
The view should be defined as a plain view, with an XMLID, and
specified with 'form_view_ref' in the context of the one2many field.
This way, modules would inherit only this view.
Problem :
It might break some module that extended the sale.order form view to
edit sale order line form.
References