Need to create a method that count the number of products of a custom category th a Many2one relationship
the method is like:
def _compute_product_count(self):
read_group_res = [login to view URL]['[login to view URL]'].read_group([('l10n_mx_edi_code_sat_id', 'child_of', [login to view URL])], ['categ_id'], ['categ_id'])
group_data = dict((data['categ_id'][0], data['categ_id_count']) for data in read_group_res)
for categ in self:
product_count = 0
for sub_categ_id in [login to view URL]([('id', 'child_of', [login to view URL])]).ids:
product_count += [login to view URL](sub_categ_id, 0)
categ.product_count = product_count
hii
I am odoo developer from past 2 years and i think i can do your task .
i have done lot of customization in odoo , and knows odoo well
Regards
Rohit Kumar
$25 USD en 1 día
4,8 (7 comentarios)
3,2
3,2
3 freelancers están ofertando un promedio de $42 USD por este trabajo
I have gone through your project description and have the required skills for the job.
I started dabbling in Odoo five years ago in 2013. Since then, I have worked in Odoo Enterprise and Community Editions and aced Odoo 8, Odoo 9, Odoo 10 and now Odoo 11.
I have good base of Python, Java, C, MongoDB and XML. I also have a basic knowledge of Pentaho.
Not only have I worked on customising modules according to my client’s needs but also built modules from scratch up.
I have headed a project for Finnish company providing industrial training through diverse courses and have a chain of institutions for the same.
Here’s how my Odoo expertise helped the Finnish company:
* We suggested the client to get rid of all the existing tools they were using for everyday internal operations and adopt Odoo instead.
* We collected all their existing data and fed it into Odoo and customized it according to the client’s requirement.
* Built a parallel system for their employees so that they can migrate to Odoo at their own pace and get accustomed to Odoo’s features over a course of time.
* Used Odoo to implement their accounting and HR module to maintain their accounts.
* Used Odoo to implement their HR module to maintain the hours of their employees in accounting.
* Implemented 'Analytic accounting'