adding new menuitem odoo 10 Sales addon doesn't work












2















I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here










share|improve this question

























  • Hi, You have added this XML file in the manifest

    – Karara Mohamed
    Nov 20 '18 at 15:18













  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much

    – Sylver
    Nov 21 '18 at 8:30











  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id

    – khelili miliana
    Nov 21 '18 at 14:02


















2















I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here










share|improve this question

























  • Hi, You have added this XML file in the manifest

    – Karara Mohamed
    Nov 20 '18 at 15:18













  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much

    – Sylver
    Nov 21 '18 at 8:30











  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id

    – khelili miliana
    Nov 21 '18 at 14:02
















2












2








2








I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here










share|improve this question
















I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here







menuitem odoo-10






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 12:24









KbiR

2,37811437




2,37811437










asked Nov 19 '18 at 10:48









SylverSylver

185




185













  • Hi, You have added this XML file in the manifest

    – Karara Mohamed
    Nov 20 '18 at 15:18













  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much

    – Sylver
    Nov 21 '18 at 8:30











  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id

    – khelili miliana
    Nov 21 '18 at 14:02





















  • Hi, You have added this XML file in the manifest

    – Karara Mohamed
    Nov 20 '18 at 15:18













  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much

    – Sylver
    Nov 21 '18 at 8:30











  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id

    – khelili miliana
    Nov 21 '18 at 14:02



















Hi, You have added this XML file in the manifest

– Karara Mohamed
Nov 20 '18 at 15:18







Hi, You have added this XML file in the manifest

– Karara Mohamed
Nov 20 '18 at 15:18















Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much

– Sylver
Nov 21 '18 at 8:30





Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much

– Sylver
Nov 21 '18 at 8:30













@Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id

– khelili miliana
Nov 21 '18 at 14:02







@Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id

– khelili miliana
Nov 21 '18 at 14:02














1 Answer
1






active

oldest

votes


















1














Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer


























  • thank you for the answer, but it doesn't work too.

    – Sylver
    Nov 19 '18 at 13:22











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372985%2fadding-new-menuitem-odoo-10-sales-addon-doesnt-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer


























  • thank you for the answer, but it doesn't work too.

    – Sylver
    Nov 19 '18 at 13:22
















1














Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer


























  • thank you for the answer, but it doesn't work too.

    – Sylver
    Nov 19 '18 at 13:22














1












1








1







Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer















Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 '18 at 12:27









KbiR

2,37811437




2,37811437










answered Nov 19 '18 at 12:00









Pablo EscobarPablo Escobar

11715




11715













  • thank you for the answer, but it doesn't work too.

    – Sylver
    Nov 19 '18 at 13:22



















  • thank you for the answer, but it doesn't work too.

    – Sylver
    Nov 19 '18 at 13:22

















thank you for the answer, but it doesn't work too.

– Sylver
Nov 19 '18 at 13:22





thank you for the answer, but it doesn't work too.

– Sylver
Nov 19 '18 at 13:22


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372985%2fadding-new-menuitem-odoo-10-sales-addon-doesnt-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to pass form data using jquery Ajax to insert data in database?

National Museum of Racing and Hall of Fame

Guess what letter conforming each word